Skip to content

Instantly share code, notes, and snippets.

View thatdutchguy's full-sized avatar

Daniël van de Burgt thatdutchguy

  • SecretlyMexico
  • Seattle, WA
View GitHub Profile
@robpataki
robpataki / xld_filename.md
Last active August 25, 2023 11:38
File naming convention for XLD encoding

Compilations:

%A - %T  -  %n - %a - %t

Albums by 1 artist

%A - %T  -  %n - %t
@desandro
desandro / jquery.imagesloaded.js
Created January 26, 2011 18:01 — forked from paulirish/README.md
$.fn.imagesLoaded jQuery plugin
// $('img.photo',this).imagesLoaded(myFunction)
// execute a callback when all images have loaded.
// needed because .load() doesn't work on cached images
// Modified with a two-pass approach to changing image
// src. First, the proxy imagedata is set, which leads
// to the first callback being triggered, which resets
// imagedata to the original src, which fires the final,
// user defined callback.
@pguillory
pguillory / gist:729616
Created December 5, 2010 23:51
Hooking into Node.js stdout
var util = require('util')
function hook_stdout(callback) {
var old_write = process.stdout.write
process.stdout.write = (function(write) {
return function(string, encoding, fd) {
write.apply(process.stdout, arguments)
callback(string, encoding, fd)
}