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
cid name | |
----------------------------------------- ------------------------------------------------------ | |
USER_LOGIN Логин | |
USER_LOGOUT Логаут | |
FRACTIONS_DEL удаление кварталов | |
SECTORS_DEL удаление участка | |
ADVERT_DROP удаление носителей рекламы | |
ADVERT_ADD_PLACES добавление мест размещения рекламы | |
SECTOR_NETWORK_ADD Добавить подсеть | |
SECTOR_NETWORK_RM Удалить подсеть |
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
Этот текст я написал для того, чтобы дать представление своим друзьям в регионах и за границей, что происходит в Москве. Из-за обрывочной информации многие полагают, что это спланированные акции оппозиции или проводят аналогии с Украиной 2004 года. Кто-то считает, что люди выходят на улицы против ЕР или за какую-то конкретную партию. Кто-то думает, что это просто небольшие беспорядки. | |
Прочитайте это и расскажите друзьям, у которых нет интернета. | |
Я не претендую здесь на вселенское знание, но во всяком случае, это лучше, чем догадки по обрывкам реплик в интернетах. | |
Это не политический протест: никто не требует пересчитать голоса в пользу других партий, а сами лидеры победивших партий не участвуют в выступлениях. | |
Это не оранжевая революция: самый верный способ заставить москвичей разойтись — это поставить большую сцену и начать раздавать палатки и валенки. |
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 python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
from PyQt4.QtGui import * | |
from PyQt4.QtCore import * | |
from pyfirmata import Arduino | |
import time |
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
address_id address_name address_district address_networks unit_id | |
------------- ---------------------------------------------- ------------------- ------------------- ---------- | |
3066 Бухарестская 138 ОБЩЕЖИТИЕ 5 10.180.24.0/22 1 | |
3067 Бухарестская 142 корп 2 ОБЩЕЖИТИЕ 5 10.180.24.0/22 1 | |
11357 Юрия Гагарина 8 21 1 | |
11358 Юрия Гагарина 10 21 1 | |
11359 Юрия Гагарина 11 21 1 | |
11360 Юрия Гагарина 12 21 1 | |
11361 Юрия Гагарина 13 21 |
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
class test(object): | |
def __init__(self): | |
self._t1 = "%(conditions)s" | |
self._t2 = '%s' | |
self._createProcs() | |
def _createProcs(self): | |
for q in self.__dict__.copy(): | |
self.__setattr__(q[1:], |
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
s = { | |
'tag': '<span class="boom"></span>', | |
'content': | |
[ | |
'Server status: ', | |
{ | |
'tag': '<a></a>', | |
'content': | |
[ | |
'[online]', |
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
import pyparsing as p | |
import inspect | |
import pprint | |
def process(fn, inline=True, badges=True, multiline=True, tag="", mtag="", debug=False, skip_lines=2): | |
""" | |
You can use semicolon tags or specify pyparsing tag in function call | |
for example, for @tag: | |
'@' + p.Word(p.alphas + '_').setResultsName('tag') |
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
python ./watcher.py ./relax.py:main |
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
# -*- coding: utf-8 -*- | |
__author__ = 'Alexey "Averrin" Nabrodov' | |
__version__ = '0.8' | |
from fabric.api import run, env, local, cd, prompt, lcd, open_shell | |
from fabric.utils import puts | |
from fabric.colors import * | |
from fabric.decorators import roles, runs_once |
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 python | |
# -*- coding: utf-8 -*- | |
#MODULES | |
try: | |
from functools import partial | |
from fabric.api import run, env, open_shell, put, sudo, get, prompt, puts | |
from fabric.colors import red | |
from fabric.decorators import task |