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/python | |
import os | |
import re | |
import shutil | |
import subprocess | |
import sys | |
import tempfile | |
def system(*args, **kwargs): |
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
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 |
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
from peewee import * | |
database = SqliteDatabase(':memory:') | |
class Model(Model): | |
class Meta: | |
database = database | |
class User(Model): |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |