This file contains 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 urllib.request | |
import os | |
import json | |
JSON_EMOTE_LIST_URL = 'https://twitchemotes.com/api_cache/v2/global.json' | |
if not os.path.exists('./emotes'): | |
os.makedirs('./emotes') | |
emotes = json.load(urllib.request.urlopen(JSON_EMOTE_LIST_URL)) |
This file contains 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
var socket = io("http://socket.donationalerts.ru:3001"); | |
socket.emit('add-user', {token: "token", type: "minor"}); | |
socket.on('donation', function(msg){ | |
console.log(msg); | |
}); |
This file contains 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
<программа> → <программа><описание д−х>|<программа>void main()<блок>|Ԑ | |
<описание д−х> → <тип><список элементов>; | < struct > | |
<список элементов> → <список элементов>,<элемент>|<элемент> | |
<элемент> → <идентификатор>|<идентификатор> = <выражение> | |
<идентификатор> → <буква><символы> |
This file contains 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 re | |
import queue | |
from graphviz import Digraph | |
from PIL import Image | |
import copy | |
# Чтение входных данных из файла | |
def readInputData(filename): | |
with open(filename) as f: |
This file contains 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
# CentOS 7.0 kickstart for XenServer | |
# branch: develop | |
########################################## | |
# Install, not upgrade | |
install | |
# Install from a friendly mirror and add updates | |
url --mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os | |
repo --name=centos-updates --mirrorlist=http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates |
This file contains 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
1. Нормативные правовые акты и официальные документы | |
2. Конституция Российской Федерации: принята на всенародном голосовании 12 декабря 1993 г. (с послед, изм.) //Рос. газ. 1993. - 25 дек. | |
3. Гражданский кодекс Российской Федерации (часть 1): Федеральный закон от 30 ноября 1994 г. № 51-ФЗ (с послед, изм.) // Собрание законодательства Российской Федерации. — 1996. — № 5. — Ст. 410. | |
4. Гражданский кодекс Российской Федерации (часть 2): Федеральный закон от 26 января 1996 г. № 14-ФЗ (с послед, изм.) // Собрание законодательства Российской Федерации. — 1994. — № 32. — Ст. 3301. | |
5. Кодекс Российской Федерации об административных правонарушениях: Федеральный закон от 30 декабря 2001 г. № 195-ФЗ (с послед, изм.) // Рос. газ. 2001.-31 дек. |
This file contains 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
elif c["data"]=="Посмотреть текущие скидки": | |
appendUserPath(c["message"]["chat"]["id"], c["data"]) | |
text="<b>Текущие скидки</b>\n" | |
sales_list=getSalesList() | |
sales_list="<pre>"+sales_list+"</pre>" | |
bot.edit_message_text( | |
chat_id=c["message"]["chat"]["id"], |
This file contains 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
{ | |
"editor.fontFamily": "Hack, 'Hack', monospace", | |
"workbench.colorTheme": "One Dark Pro", | |
"editor.renderWhitespace": "boundary", | |
"editor.cursorBlinking": "phase", | |
"python.linting.enabled": false, | |
"python.linting.enabledWithoutWorkspace": false, | |
"python.formatting.formatOnSave": true, | |
"python.linting.pylintEnabled": false, | |
"editor.fontWeight": "bold" |
This file contains 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 subprocess | |
import re | |
def percentTodBm(quality): | |
return (quality / 2) - 100 | |
def getSSID(): | |
results = subprocess.check_output( |
This file contains 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
mtype = {new_task, task_comp, done}; | |
byte taskOpen = 0; | |
byte taskClose = 0; | |
chan c_client = [0] of {mtype}; | |
chan c_chair = [0] of {mtype}; | |
chan c_hr = [0] of {mtype}; | |
chan c_worker = [0] of {mtype}; |
OlderNewer