This file contains 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
#!/bin/bash | |
# (C) 2012 Manuel Strehl | |
# | |
# Published under the MIT license <http://opensource.org/licenses/mit-license>. | |
if [ "$1" = "-h" -o "$1" = "--help" ]; then | |
cat <<USAGE | |
usage: $(basename $0) WIDTH [HEIGHT] | |
Request a dummy image from <http://dummyimage.com>. If HEIGHT is omitted, it |
This file contains 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
#!/usr/bin/python | |
"""Convert all defined glyphs from a font to PNG images | |
Needs FontForge, ImageMagick and pngcrush installed.""" | |
import fontforge as ff | |
import os | |
import subprocess | |
import sys |
This file contains 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
This is a collection of templates, that depict HTTP error messages in different MIME types. | |
Each template expects the parameters | |
* {CODE} - the numeric HTTP error code | |
* {PHRASE} - the reason phrase, e.g., "Not Found" for 404 | |
and in some cases the parameter |
This file contains 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
function(s,k){k=s.match(/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/);return new Date(Date.UTC(k[1],k[2]-1,k[3],k[4],k[5],k[6]))} |
This file contains 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 $=(function(){var x=[],z=setInterval(function(){if("jQuery" in window){$.each(x,function(){$(this)});clearInterval(z)}},10);return function(y){x.push(y)}})(); | |
/* uncompressed: */ | |
var $ = (function() { | |
var x = [], | |
z = setInterval(function() { | |
if ("jQuery" in window) { | |
$.each(x, function() { | |
$(this); | |
}); |
This file contains 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
# | |
# Advanced Django 1.3.x+ Logging | |
# | |
# Author: | |
# Jason Giedymin < jasong _[_a-t_]_ apache d-o-t org > | |
# | |
# Description: | |
# A Django 1.3.x+ settings.py snippet with Advanced logging formatters using RFC 2822, | |
# TimedRotatingFileHandler, and a WatchedFileHandler. | |
# |
NewerOlder