Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dpatti
dpatti / Sample Output
Created February 24, 2012 18:24
UpEnter Shell Script
$> ./upenter.sh 10000 ./test
parent
child
--------------------------------------------------------------------------------
child
parent
--------------------------------------------------------------------------------
Took 995 attempt(s) to get a different output
@dpatti
dpatti / Minified
Created June 25, 2012 06:19
Trello Card CSV Bookmarklet
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 / music-dump.py
Created June 27, 2012 06:30
Music info dump
# 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 / twitter.com.js
Created July 2, 2012 05:58
Twitter search updates filter
/* 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

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 November 8, 2022 23:22
Binding of Isaac Mechanics Guide

Binding of Isaac Mechanics Guide

Stats

Health

Each character starts with the following health

  • Isaac: 3
  • Maggy: 4
  • Cain: 2
  • Judas: 1