Skip to content

Instantly share code, notes, and snippets.

gist + sublimetext 2 = hawtness! needs mo hax
@joshgillies
joshgillies / gist:1708729
Created January 31, 2012 04:11
Print Preview Shizz
(function(url, search) {
var printButton = $("#nav").find(".printer");
var searchString = (search) ? search + "&SQ_DESIGN_NAME=printer_friendly" : false;
var printButtonHref = (searchString) ? printButton.attr("href") + searchString : false;
(printButtonHref) ? printButton.attr("href", printButtonHref) : printButton.attr("href");
})("<MySource_PRINT id="__global__" var="asset_url" />", window.location.search);
@joshgillies
joshgillies / sonofspam.txt
Created September 26, 2011 06:31
Comprehensive list of rules for #sonofspam
first rule of #sonofspam, don't talk about #sonofspam
second rule of #sonofspam, don't spam #sonofspam, unless you're dave
third rule of #sonofspam, matt, you're banned, get over it :)
fourth rule of #sonofspam, the direction is always ------------>
fifth rule of #sonofspam, you can only complain about your irc client if it isn't irssi
@joshgillies
joshgillies / bespin-bookmarklet-4-mysource-matrix.js
Created January 11, 2011 01:07
WIP: Enable the Bespin Bookmarklet to enable fancy editing of MySource Matrix design parse files
javascript:(function(){var%20elem=document.createElement('script');elem.setAttribute('src','https://bespin.mozillalabs.com/bookmarklet/bookmarklet.js');document.getElementById('main_frameset').getElementsByTagName('frame')[2].contentWindow.document.body.appendChild(elem);})()