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
# 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 | |
# |
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
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 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 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 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 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 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 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 Readable documents | |
// @namespace example | |
// @include https://airbnb.quip.com/* | |
// @version 1.0 | |
// @grant GM_addStyle | |
// ==/UserScript== | |
function transformation(match, p1) { | |
return `calc(1.33333333333 * ${p1})`; |
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
// ==UserScript== | |
// @name Show emoji in gmail | |
// @namespace http://example.com | |
// @author You | |
// @match https://mail.google.com/* | |
// @version 1.0 | |
// @grant GM_addStyle | |
// ==/UserScript== | |
var installed = false; |
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
// ==UserScript== | |
// @name Pokemon meme for inbox zero | |
// @namespace http://example.com | |
// @author You | |
// @match https://mail.google.com/* | |
// @version 1.1 | |
// @grant GM_addStyle | |
// ==/UserScript== | |
GM_addStyle('tr.TD td.my_congratulations { font: 25.6px Serif; padding: 8px 0 36px 0; }'); |
NewerOlder