Skip to content

Instantly share code, notes, and snippets.

View kekssw's full-sized avatar

Vladislav Shainiak kekssw

View GitHub Profile
@kekssw
kekssw / keybase.md
Created November 21, 2019 06:37
keybase.md

Keybase proof

I hereby claim:

  • I am kekssw on github.
  • I am vshainiak (https://keybase.io/vshainiak) on keybase.
  • I have a public key ASDPt4dB00tU3yE-fW82fOWM4CIvm6P0n0RpiL_oYxGZNAo

To claim this, I am signing this object:

@kekssw
kekssw / PyCon2016.txt
Last active June 8, 2016 08:06
PyCon 2016 - Recommended by kekssw
For me to watch:
====
Great speakers + interesting topics
----
- How I built a power debugger out of the standard library and things I found on the internet
https://www.youtube.com/watch?v=g8kF9tuYZ6s
- Glyph - Shipping Software To Users With Python - PyCon 2016
https://www.youtube.com/watch?v=5BqAeN-F9Qs
- Andrew Godwin - Reinventing Django for the Real-Time Web - PyCon 2016
https://www.youtube.com/watch?v=2sEPipctTxw
@kekssw
kekssw / git-transplant.sh
Last active August 29, 2015 14:10
git-transplant
#!/bin/bash
if [ "$#" -lt 2 ]
then
cat << EOM
Usage: git-transplant <FROM> <TO> <UPSTREAM>
Transplants <FROM> .. <TO> commit range (inclusive) on top of <UPSTREAM>.
If <FROM> is a number, transplant that number of commits ending at <TO> instead
@kekssw
kekssw / distribute_tasks.py
Created December 7, 2011 21:03
A couple of wrappers for asynchronous distributed processing
def distribute(through, proceed):
def wrapper(f):
def wrapped(*args, **kwargs):
all_launched = False
results = []
def callback():
#print 'Worker is done. Intermediate results: %s' % results
if all_launched and all(results):
//
// Juick.h
// iJuick
//
// Created by Vladislav Szajniak on 26.08.09.
// Copyright 2009 keks.dev. All rights reserved.
//
#import <Foundation/Foundation.h>
#!/usr/bin/python
# -*- coding: utf-8 -*-
from get_google_lang import *
from debug import ishell
import sys
from urllib import urlencode
from urllib2 import urlopen
import sqlite3
from datetime import datetime
from contextlib import contextmanager
@contextmanager
def mark_enabling(value):
global mark
try:
mark = True
yield value
finally:
mark = False
import PyQt4
import PyQt4.QtCore