View gist:8802905
View font.html
<!DOCTYPE html>
<title>How browsers set vertical spacing</title>
body {
margin: 20px;
font-family: Times,'Times new roman';
font-size: 16px;
View jQuery.browser-fork.js
Set browser forking classes on html element. Can be executed as soon as jQuery is loaded.
@dependency jQuery 1.4
flags are: webkit, opera, msie, mozilla, (safari flag not used), os-win, os-mac
(function(flags, app) {
$.each($.browser, function(k, v) {
if (v === true && k !== 'safari') flags.push(k);
os('Win', 'os-win');
View jquery.fancybox-1.3.4jh.js
* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
* Examples and documentation at:
* Copyright (c) 2008 - 2010 Janis Skarnelis
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
* Version: 1.3.4 (11/11/2010)
Module - Static Date methods for formatting js Date objects to strings.
@author John Hunter
created 2010-03-30
use: Date(), '^') => '30^03^2010'
*/ = (function () {
View jquery-ajax-callback-test.html
<!DOCTYPE html>
<meta charset="utf-8">
<pre id="output"></pre>
<script src=""></script>
View bookmarklet-searches.html
<!DOCTYPE html>
<meta charset="utf-8">
body {
background: #eee;
alias ga='git add $1'
alias gb='git branch $1'
alias gcl='git clone $1'
alias gco='git checkout $1'
alias gd='git diff $1'
alias gdc='git diff --cached'
alias gl='git log --pretty=format:"%Cgreen%h %Creset %s %Cblueby %an (%ar) %Cred %d" --graph'
alias gm='git commit -m $1'
alias gma='git commit -am $1'
alias gp='git push'
View css-drop-base64.php
#!/usr/bin/env php
# John Hunter <>
$path = getenv('TM_DROPPED_FILE');
$path_parts = pathinfo($path);
$info = getimagesize($path);