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
map h previousTab | |
map l nextTab | |
map d removeTab | |
map u restoreTab | |
map <C-d> scrollPageDown | |
map <C-u> scrollPageUp |
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
[pytest] | |
norecursedirs=venv .* _build tmp* |
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 inspect | |
exec("def init{type}: self.__dict__.update(dict((str(x), y) for x, y in zip(inspect.signature(init).parameters.values() , {type})))".format(type=inspect.signature(lambda self, a, b: None)), locals()) | |
types = str(inspect.signature(lambda self, a, b: None)) | |
assert types == "(self, a, b)" | |
class K: pass | |
K.__init__ = init |
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
index { | |
print("function `index` is called") | |
} | |
main { | |
print("function `main` is called") | |
} | |
# =========> | |
# Same as: |
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
class MetaData(type): | |
def __new__(mcs, name, bases, attrs): | |
for a in attrs: | |
# Ignore magic names | |
if a.startswith("_"): | |
continue | |
print(a) | |
return super().__new__(mcs, name, bases, attrs) |
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 staccato | |
import os | |
import configparser | |
import csv | |
import redis | |
import sys | |
def import_configurations(path="~/.staccato.conf"): | |
"""Import oauth1 settings via configparser.""" |
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 os | |
context = list() | |
def run(arg): | |
context[-1].run(arg) | |
class Context: |
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 staccato | |
import time | |
# must be replaced | |
consumer_key = "YOURS" | |
consumer_secret = "YOURS" | |
access_token_key = "YOURS" | |
access_token_secret = "YOURS" | |
TARGET = "username" | |
SLEEP_TIME = 5 |
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
{ | |
... | |
"author": "minamorl", | |
"license": "MIT", | |
"dependencies": { | |
"@types/bcrypt": "^1.0.0", | |
"@types/body-parser": "0.0.33", | |
"@types/bookshelf": "^0.8.34", | |
"@types/cookie-parser": "^1.3.30", | |
"@types/cors": "^2.8.0", |
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
// Prolog | |
prolog | |
xmldecl | |
versioninfo | |
eq | |
versionnum | |
misc | |
// Document Type Definition | |
doctypedecl |
OlderNewer