Install git/subversion:
sudo apt-get install git subversion
Configure Git:
git config --global user.name "Your Name"
git config --global user.email "Your Email"
ssh-keygen -t rsa -C "Your Email"
| from django.db import connections | |
| cursor = connections['default'].cursor() | |
| # queryset заменить на имя переменной, содержащей QuerySet | |
| print(f'{cursor.mogrify(*queryset.query.sql_with_params())}') |
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| # C extensions | |
| *.so | |
| # Distribution / packaging | |
| .Python | |
| env/ |
| // Ошибки | |
| var pageLoadError = errors.New("Произошла ошибка при загрузке страницы") | |
| var pageReadError = errors.New("Произошла ошибка при чтении страницы") | |
| // Структура для хранения информации о url странице | |
| type Page struct { | |
| url string | |
| response *http.Response | |
| body []byte | |
| content string |
| func getPage(link string) string { | |
| response, err := http.Get(link) | |
| if err != nil { | |
| println("Произошла ошибка при загрузке страницы: " + link) | |
| return "" | |
| } | |
| body, err := ioutil.ReadAll(response.Body) | |
| if err != nil { | |
| println("Произошла ошибка при попытке чтения контента страницы: " + link) |
| # coding: utf-8 | |
| import re | |
| from redmine import Redmine | |
| def note_to_redmine(ui, repo, node, **kwargs): | |
| redmine_url = ui.config('redmine', 'url') | |
| note_format = ui.config('redmine', 'note') | |
| api_key = ui.config('redmine', 'key') |
| data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/solarized_dark");e.getSession().setMode("ace/mode/python");</script> | |
| <!-- | |
| For other language: Instead of `ace/mode/ruby`, Use | |
| Markdown -> `ace/mode/markdown` | |
| Python -> `ace/mode/python` | |
| C/C++ -> `ace/mode/c_cpp` | |
| Javscript -> `ace/mode/javascript` |
Install git/subversion:
sudo apt-get install git subversion
Configure Git:
git config --global user.name "Your Name"
git config --global user.email "Your Email"
ssh-keygen -t rsa -C "Your Email"