Skip to content

Instantly share code, notes, and snippets.

Justin Hileman bobthecow

Block or report user

Report or block bobthecow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mikehale / jquery.copyable.js
Created Jan 21, 2010
A jquery API for ZeroClipBoard
View jquery.copyable.js
This script requires the jquery.includeMany plugin and ZeroClipboard.
$("#elementToClickOn").copyable(function(e, clip) {
stephanschubert / deferred_google_analytics.html
Created Apr 9, 2010
jQuery version of deferred Google Analytics. See for more details.
View deferred_google_analytics.html
<script type="text/javascript">
(function($) {
$("body").load(function() {
setTimeout(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
}, 1);
bobthecow / cdd.bash
Created Jun 21, 2010
Change directories really fast
View cdd.bash
# Change directories really really fast
# Author: Justin Hileman (
# Installation:
# Add the following function to your `.bashrc` or `.bash_profile`,
# or save it somewhere (e.g. `~/.cdd.bash`) and source it in `.bashrc`
bobthecow / .gitconfig
Created Jul 6, 2010
`git todo` alias is the hotness.
View .gitconfig
# install t first:
todo = !python ~/path/to/ --task-dir "$(git rev-parse --show-toplevel)" --list TODO
bug = !python ~/path/to/ --task-dir "$(git rev-parse --show-toplevel)" --list BUGS
View bench1
HTMLPurifier Pass #1 - Small File:
marker time index ex time perct
Start 1278617711.57713300 - 0.00%
Stop 1278617715.11053700 3.533404 100.00%
View MustacheCallTest.php
require_once '../Mustache.php';
class MustacheCallTest extends PHPUnit_Framework_TestCase {
public function testCallEatsContext() {
$foo = new Foo();
$foo->name = 'Bob';
View gist:706970
$please['don\'t']='tell me';
$onNew->lines=$when->everythingElse($you,'write',$looks->likeThis); // (no spaces, everything smashed together)
View gist:722508
FROM: Harvey Ball <>
Why does doctrine piss memory up the wall like a drunken slag on a saturday night?
I built a basic test such as....
Sku table
View php.rb
require 'formula'
def mysql_installed?
`which mysql_config`.length > 0
class Php <Formula
url ''
homepage ''
seth / yui_compressor.rb
Created Jan 11, 2011
A Nanoc filter for minifying CSS and Javascript using the YUI Compressor
View yui_compressor.rb
YUI_JAR = File.dirname(__FILE__) + "/../tools/yuicompressor-2.4.2.jar"
class YuiCompressor < Nanoc3::Filter
identifier :yui_compress
type :text => :binary
def run(content, params={})
type = type_from_extension
cmd = "java -jar #{YUI_JAR} --type #{type} -o #{output_filename}"
IO.popen(cmd, 'w') { |f| f.write(content) }
raise "yuicompressor exited with #{$?} for '#{cmd}'" unless $? == 0
You can’t perform that action at this time.