Skip to content

Instantly share code, notes, and snippets.

Avatar

Doug Patti dpatti

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am dpatti on github.
  • I am dpatti (https://keybase.io/dpatti) on keybase.
  • I have a public key ASDjxK0Rl8MLx9NbahvNdXZQw-4jB6pgHb8wxUtL22z4HAo

To claim this, I am signing this object:

@dpatti
dpatti / mechanics.md
Last active May 23, 2020
Binding of Isaac Mechanics Guide
View mechanics.md

Binding of Isaac Mechanics Guide

Stats

Health

Each character starts with the following health

  • Isaac: 3
  • Maggy: 4
  • Cain: 2
  • Judas: 1
@dpatti
dpatti / twitter.com.js
Created Jul 2, 2012
Twitter search updates filter
View twitter.com.js
/* When dotjs eval()'s this script, it's in the context of the extension, which
* in Chrome's case means that there is no way to access the window object, and
* thus no way to access the XMLHttpRequest object of the Twitter tab. However,
* you can access the DOM just fine, so by taking all of my code and using
* JavaScript's oh-so-useful (apparently!) Function.prototype.toString(), I can
* append this entire file as a script tag and execute it. What a hack.
*/
var pageScript = (function(){
function loadFilters() {
// Filters are executed in the order they are defined. If a filter matches a
@dpatti
dpatti / music-dump.py
Created Jun 27, 2012
Music info dump
View music-dump.py
# Requires Mutagen: http://code.google.com/p/mutagen/wiki/Tutorial
# sudo easy_install mutagen
from mutagen.easyid3 import EasyID3
from mutagen import File
import os, sys
if len(sys.argv) < 2:
print "Usage: python music-dump.py <path to music>"
exit()
@dpatti
dpatti / Minified
Created Jun 25, 2012
Trello Card CSV Bookmarklet
View Minified
javascript:var url=document.location.href;var match=url.match(/\/board\/.+?\/([0-9a-f]+)/);if(match){$.get("/1/boards/"+match[1],{cards:'all'},function(resp){var cardGroups=_.groupBy(resp.cards,function(i){return i.idList;});console.log(_.map(_.values(cardGroups),function(i){return _.pluck(i,'name').join(",")}).join("\n"));},'json');}
@dpatti
dpatti / Sample Output
Created Feb 24, 2012
UpEnter Shell Script
View Sample Output
$> ./upenter.sh 10000 ./test
parent
child
--------------------------------------------------------------------------------
child
parent
--------------------------------------------------------------------------------
Took 995 attempt(s) to get a different output
You can’t perform that action at this time.