Skip to content

Instantly share code, notes, and snippets.

Alexander Shchapov alexanderad

Block or report user

Report or block alexanderad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alexanderad
alexanderad / 0_reuse_code.js
Created Oct 16, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View peewee_first.py
from peewee import *
database = SqliteDatabase(':memory:')
class Model(Model):
class Meta:
database = database
class User(Model):
@alexanderad
alexanderad / gist:65aab071d3692205ba18
Created Apr 26, 2015
iterm2 additional key codes
View gist:65aab071d3692205ba18
FOR ACTION SEND
⌥Shift← "HEX CODE" 0x01 < line start
⌥Shift→ "HEX CODE" 0x05 > line end
⌥← "SEND ESC SEQ" b < one word back
⌥→ "SEND ESC SEQ" f > one word forward
⌥w "SEND ESC SEQ" 0x17 delete one word
⌥ShiftW "SEND ESC SEQ" 0x15 delete line
@alexanderad
alexanderad / pre-commit
Last active Dec 20, 2015 — forked from lentil/gist:810399
GIT pre-commit hook for python project, which uses simplified pep8 checks and pyflakes checks. 0) pip install pyflakes && pip install pep8 1) download https://gist.github.com/alexanderad/6163219 2) mv <downloaded file name> .git/hooks/pre-commit 4) chmod +x .git/hooks/pre-commit 5) ... 6) PROFIT!
View pre-commit
#!/usr/bin/python
import os
import re
import shutil
import subprocess
import sys
import tempfile
def system(*args, **kwargs):
You can’t perform that action at this time.