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
// ==UserScript== | |
// @name Github simplified diffs | |
// @namespace example | |
// @include https://git.musta.ch/* | |
// @include https://gist.git.musta.ch/* | |
// @include https://github.com/* | |
// @include https://gist.github.com/* | |
// @version 1.2 | |
// @grant none | |
// ==/UserScript== |
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
# Import this module into your script to enable debugging. | |
# Set a function breakpoint. | |
# | |
# class.method = debug.wrap(class.method) | |
# | |
def wrap(function): | |
def wrapper(*args, **quarks): | |
set_trace_with_lazy_import_of_libraries(up=2) |
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
# To make exit work as expected link PYTHONSTARTUP to this file | |
type(exit).__repr__ = type(exit).__call__ |
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 contrib import debug | |
# Defines a little language for schema-enforced models. | |
# | |
# - Entities are described by models | |
# - Models are described by metamodels | |
# - Models have fields, derived fields and constraints | |
# - Entities can have custom fields | |
# - Entities can be created even if data is invalid |
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
/************* | |
/ | |
/ Install Stylus to use this file in Chrome | |
\ | |
\ | |
*/ | |
/* Email body */ | |
.a3s { | |
font: 25.6px Serif !important; |
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
require 'json' | |
require 'net/http' | |
require 'nokogiri' | |
require 'omakase' # see omakase repo on my github | |
require 'pry' | |
require 'sqlite3' | |
API_KEY = JSON.parse(File.read('key_tumblr.json'))['key'] |
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
# My patches for ipdb debugger. | |
# | |
# - Use file history | |
# - Magic lambda expressions | |
# - Safe assignments (avoid collision with commands) | |
# - Print assignments | |
# - ls command (a better dir) | |
# - dollar command (a better pinfo) | |
# - fix debug command | |
# |
OlderNewer