Pug - это препроцессор HTML и шаблонизатор, который был написан на JavaScript для Node.js.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django import forms | |
| from django.forms.forms import BoundField | |
| from django.utils.datastructures import SortedDict | |
| class BoundFieldset(object): | |
| def __init__(self, form, name, title, fields, is_fieldset): | |
| self.form = form | |
| self.name = name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Работа с закладками: | |
| Поставить или снять закладку F11 | |
| Аналогично с присвоением буквы или цифры Ctrl + F11 | |
| Переход к закладке (удаление — клавишей Delete) Shift + F11 | |
| Быстрый переход к закладке с присвоенным числом Ctrl + Число | |
| Редактирование: | |
| Отменить последнее действие Ctrl + Z | |
| Отменить последнюю отмену действия Ctrl + Shift + Z | |
| Расширенная вставка из буфера обмена (с историей) Ctrl + Shift + V |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| cd Downloads | |
| wget https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip | |
| if [ ! -d "~/.fonts" ] ; then | |
| mkdir ~/.fonts | |
| fi | |
| unzip 1.050R-it.zip | |
| cp source-code-pro-*-it/OTF/*.otf ~/.fonts/ | |
| rm -rf source-code-pro* | |
| rm 1.050R-it.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). | |
| # Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and | |
| # run `sudo service procps start` or reboot. | |
| # Source: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit | |
| # | |
| # решение вопроса https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit | |
| # | |
| # More information resources: | |
| # -$ man inotify # manpage | |
| # -$ man sysctl.conf # manpage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \а звонок | |
| \b возврат на одну позицию (backspace) | |
| \f перевод страницы | |
| \n перевод строки | |
| \г возврат каретки | |
| \t горизонтальная табуляция | |
| \v вертикальная табуляция | |
| \\ обратный слеш | |
| \" двойная кавычка | |
| \' одинарная кавычка |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Файл настройки: ~/.vimrc | |
| Можно редактировать файлы через сеть, например | |
| :e <scp|ftp|ftps>://user@host/path/to/the/file.txt | |
| :Ex или :e ./ - файловый менеджер | |
| == Основы == | |
| hjkl перемещение в разные стороны | |
| i режим вставки | |
| I добавление в начало строки | |
| a режим добавления |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Количество строк одной таблицей за раз | |
| SELECT count(*) FROM table_name; | |
| # Второй подход отмечает, что сборщик статистики отслеживает примерно количество строк в | |
| # реальном времени (не удаленных или устаревших позже) в любое время. Это значение может быть | |
| # немного уменьшено при активности, но, как правило, хорошая оценка: | |
| SELECT schemaname,relname,n_live_tup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = [email protected] | |
| username = pksunkara | |
| [core] | |
| editor = vim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| excludesfile = ~/.gitignore | |
| [sendemail] | |
| smtpencryption = tls |
NewerOlder