This file contains hidden or 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
$ npm xmas | |
★ | |
/\ | |
/ @\ | |
/ i i\ | |
/ i \ | |
/i & 。⸛&\ | |
/ i \ | |
/⸮ ⁂⸛ &@⸮。 &\ |
This file contains hidden or 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 sys | |
import simplejson as json | |
try: | |
import cPickle as pickle | |
except ImportError: | |
import pickle | |
def main(argv): | |
try: |
This file contains hidden or 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
var http = require('http'); | |
http.createServer(function (req, res) { | |
var timeout = setTimeout(function() { | |
clearTimeout(main); | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Quit!'); | |
}, 2000); | |
var main = setTimeout(function() { | |
clearTimeout(timeout); |
This file contains hidden or 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
var MailParser = require("mailparser").MailParser; | |
exports.hook_queue = function (callback, connection) { | |
// Parse the mail first... | |
var mp = new MailParser({fix_smtp_escapes: 0}); | |
var headers; | |
var body; | |
var t = this; | |
mp.on('header', function (h) { |
This file contains hidden or 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 pymongo import Connection | |
from pymongo.collection import Collection | |
from pymongo.errors import AutoReconnect | |
from django.conf import settings | |
from types import FunctionType | |
import functools | |
import time |
This file contains hidden or 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
(Yeah, Ah-Ah-Ah-Ah-Ah-Ark) | |
Oo-ooh-ooh, hoo yeah, yeah | |
Yeah, yeah | |
Yeah-ah-ah | |
Yeah-ah-ah | |
Yeah-ah-ah | |
Yeah-ah-ah | |
Yeah, yeah, yeah | |
7am, waking up in the morning |
This file contains hidden or 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
const FRAME_WIDTH = 410; | |
const FRAME_HEIGHT = 280; | |
const MAX_COLUMNS = 10; | |
var newDocumentName = prompt("Name of new document?", "New Sprite Sheet"); | |
var images = getFolder(), | |
background = getBackground(), | |
columns = Math.min(MAX_COLUMNS, images.length), |
This file contains hidden or 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 django.template import Library, Node, TemplateSyntaxError, Variable, VariableDoesNotExist | |
from django.core.cache import cache | |
from django.utils.hashcompat import md5_constructor | |
import urllib2 | |
register = Library() | |
class GistNode(Node): | |
def __init__(self, gist_id, filename=None, *args): |
This file contains hidden or 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
$('#sprite_once').sprite({ | |
speed: 50, | |
frames: 72, | |
columns: 9, | |
mode: 'once', | |
onStep: function(e) | |
{ | |
$(this).nextAll('.status').text(e.step); | |
}, | |
onComplete: function() |
OlderNewer