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
Js wat | |
Eurocon: https://blog.europython.eu | |
Rust prom.ua | |
Rabbitmq | |
Celery | |
Namedtuple vs dict: Lear std types | |
Userdict in my current CI | |
Disassembling | |
Pypy vs Cython: compiles bytecode | |
Which python i Use? |
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 regex | |
def try_recursive_regex(): | |
text = "ababagalamaga1-ababagalamaga2-(werewr(o)(l)(i)(a))sdfsdf()()((((" | |
pattern = "\((?>[^()]|(?R))*\)" | |
res = regex.findall(pattern, text) | |
print( res ) |
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
ACTION = build | |
AD_HOC_CODE_SIGNING_ALLOWED = NO | |
ALTERNATE_GROUP = staff | |
ALTERNATE_MODE = u+w,go-w,a+rX | |
ALTERNATE_OWNER = grantdavis | |
ALWAYS_SEARCH_USER_PATHS = NO | |
ALWAYS_USE_SEPARATE_HEADERMAPS = YES | |
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer | |
APPLE_INTERNAL_DIR = /AppleInternal | |
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation |
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
digraph finite_state_machine { | |
rankdir=LR; | |
size="8,5" | |
node [shape = circle]; | |
node [shape = doublecircle]; s1; | |
node [shape = doublecircle]; s5; | |
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
My top tips for productive code reviews: | |
👍 Give praise, not only improvement suggestions. | |
🤖 Automate all sorts of style checks. | |
🤝 Agree with the team before making big changes. | |
🤔 Ask for clarification, rather than saying something is wrong. | |
✅ Use tests to show your intent. |
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
16 ========================================= | |
flapping = маяти, розвіватись | |
sodden = промоклий, просочений | |
founder = загрузнути, затонути | |
fare = жити, існувати | |
spearmen = списники | |
formidable = грізний, величезний | |
vanguard = авангард | |
engulf = поглинати |
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
from subprocess import call | |
# git diff --name-only --diff-filter=D > deleted_files_list.txt | |
folder_name = "SubFolder1/SubFolder2" | |
with open("deleted_files_list.txt") as f: | |
for filename in f: | |
if filename.startswith("folder_name"): | |
call(["git", "checkout", filename[:-1]]) |
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
# search given text in all commit messages | |
git log --all --grep='some_text' |
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
NSLog(@"%@", [[NSThread callStackSymbols] description]); |
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 dumpExtensions() | |
{ | |
GLint n; | |
glGetIntegerv(GL_NUM_EXTENSIONS, &n); | |
if (n > 0) | |
{ | |
const char** extensions = (const char**)malloc(n * sizeof(char*)); | |
GLint i; | |
for (i = 0; i < n; i++) | |
{ |