Skip to content

Instantly share code, notes, and snippets.

👶
🦈, doo doo doo doo doo doo

Geoffrey Huntley ghuntley

👶
🦈, doo doo doo doo doo doo
Block or report user

Report or block ghuntley

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
View topado-2.html
<!DOCTYPE html>
<html>
<head>
<title>iPad To-do</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="http://krosswordr.ru/site_media/invisibleframework.min.css" type="text/css" media="screen" />
<link rel="stylesheet" href="http://krosswordr.ru/site_media/i/jqtouch/jqtouch.min.css" type="text/css" />
<link rel="stylesheet" href="http://krosswordr.ru/site_media/i/themes/apple/theme.min.css" type="text/css" />
</head>
<body>
View haml_converter.rb
module Jekyll
require 'haml'
class HamlConverter < Converter
safe true
priority :low
def matches(ext)
ext =~ /haml/i
end
@ghuntley
ghuntley / network_grabber.rb
Created Jun 2, 2011 — forked from callumj/network_grabber.rb
Grab all CITS3230 pdfs
View network_grabber.rb
require 'nokogiri'
require 'open-uri'
root_path = "http://undergraduate.csse.uwa.edu.au/units/CITS3230"
Nokogiri::HTML(open("#{root_path}/schedule.html")).css('a').each { |link| File.open("#{Dir.home}/#{File.basename(link['href'])}", 'wb') {|f| f.write(open("#{root_path}/#{link['href']}").read()) } if link['href'] =~ /\b.+.pdf/ }
View vpswitch.cpp
/*
* Compiz vpswitch plugin
*
* vpswitch.cpp
*
* Copyright (c) 2007 Dennis Kasprzyk <onestone@opencompositing.org>
*
* Go-to-numbered-viewport functionality by
*
* Copyright (c) 2007 Robert Carr <racarr@opencompositing.org>
View .vimrc
nmap <C-W>e :set splitbelow <bar>:new <bar>:VimShell <bar><CR><ESC><ESC>:set splitbelow! <bar>i<CR>
nmap <C-W>E :set splitright <bar>:vnew <bar>:VimShell <bar><CR><ESC>:set splitright! <bar>i<CR>
View gist:1041664
nmap <C-W>e :set splitbelow \| :new \| VimShell zsh \| :set splitbelow!<CR>
nmap <C-W>E :set splitright \| :vnew \| VimShell zsh \| :set splitright!<CR>
View utils.py
pattern = re.compile(r'([^:/]+)/([^/]+).git$')
View gist:1041844
_VMWARE_LOCK_0(CARDINAL) = 0
CUT_BUFFER0(STRING) = "# Whilst repositories by default have the postfix of \".git\"\n # it is purely optional, GitHub accepts"
PULSE_COOKIE(STRING) = "d13567c48fc0cdd127844182ba92df442c32d21c4622f0fa0184f9d14d5db7d135f88f8d620cc3c5c9be4a5b544e2d012a752be1013530767ca276fc56dd564d2462e591a7b41c119a953d41fdbfe5e50c74602c3fcf5686e64243595c416d22288c2a78fb51957cbe4ea04eee3f37cc8781332d9213ee4001f69a96008335c42869a6567903a38dcc5fae927e363dd91e1e0a844cb01e0df1b0a385bc740c06ccce188de854454f26b41d19bdb4c31d94250868865904d19907ab9a2c679bc638fb83f47936efdcac2add78b3b8d0cce6aa64bc7bcdb150f3513a702839b00895c322a99784d03c244fa22aa78ee2fd63037b66937cbe1c087a3b5d5795e857"
PULSE_SERVER(STRING) = "{1565eea12e581347137f2bde00000007}unix:/home/ghuntley/.pulse/1565eea12e581347137f2bde00000007-runtime/native"
PULSE_SESSION_ID(STRING) = "1565eea12e581347137f2bde00000007-1308781982.282268-1101177244"
PULSE_ID(STRING) = "1000@1565eea12e581347137f2bde00000007/1897"
_COMPIZ_SUPPORTING_DM_CHE
@ghuntley
ghuntley / post-checkout
Created Jun 27, 2011 — forked from drichert/post-checkout
git post-checkout hook for compressing javascript (via uglifyjs)
View post-checkout
#!/bin/bash
branch=$(git symbolic-ref -q HEAD |sed 's/refs\/heads\///')
gitroot=$(git rev-parse --show-toplevel)
jsdir="js"
targetdir="$gitroot/$jsdir"
files=$(find $targetdir -maxdepth 1 -type f -name '*.js' ! \( -name '*.min.js' \))
echo -n "Uglifying javascript... "
for f in $files; do
@ghuntley
ghuntley / router.js
Created Jul 22, 2011 — forked from jenjenut233/router.js
Resourceful Routing with Sencha Touch
View router.js
Ext.apply(Ext.Router, {
/**
* Alias a named route to an existing named route for laziness.
*
* map.connect('messages', { controller: 'messages', action: 'index' });
* map.alias('message_center', 'messages');
*
* @param {String} alias The name of the alias to create
* @param {String} existing The name of the existing route to map the alias to
You can’t perform that action at this time.