Skip to content

Instantly share code, notes, and snippets.

View matthewhudson's full-sized avatar

Matthew Hudson matthewhudson

View GitHub Profile
@matthewhudson
matthewhudson / Ubuntu s3fs install
Created December 13, 2011 01:50
Ubuntu s3fs install & dependencies.
# Install prerequisites before compiling:
apt-get install build-essential
apt-get install libfuse-dev
apt-get install fuse-utils
apt-get install libcurl4-openssl-dev
apt-get install libxml2-dev
apt-get install mime-support
# Download and Install
wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz
@matthewhudson
matthewhudson / hackerhub.json
Created December 12, 2011 15:36
Hackerhub Profile
{
"settings" : {
"id" : "matthewhudson",
"name" : "Matthew Hudson",
"avatar" : "http://www.matthewghudson.com/Matthew-Hudson.jpg",
"enable_search" : true
},
"content" : {
"tumblr" : {
"title" : "Blog",
@matthewhudson
matthewhudson / JavaScript Class
Created November 1, 2011 19:31
Best-practive JavaScript class: "that" is public, "my" is private to the object.
var constructor = function (spec, my) {
var that = {};
var my = my || {};
// This function is private.
my.privateFunction = function() {
return true;
};
// This function is public.
@matthewhudson
matthewhudson / jQuery External Link _target=blank
Created October 26, 2011 16:12
Automatically open external links in a new window.