Skip to content

Instantly share code, notes, and snippets.

View jackfranklin's full-sized avatar

Jack Franklin jackfranklin

View GitHub Profile
@jackfranklin
jackfranklin / freelance-rates-2012.csv
Created December 6, 2012 15:10 — forked from cole007/freelance-rates-2012.csv
Freelance Rates 2012 data under Creative Commons license (http://creativecommons.org/licenses/by/2.0/uk/)
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
Released under Creative Commons license (http://creativecommons.org/licenses/by/2.0/uk/)
Timestamp,Where are you based in the UK?,How would you describe what you do,Is your primary skill set ,How old are you?,How many years have you been a web professional?,What is your day (not hourly) rate?,Average,How many years have you been freelance?,How do you charge clients?,Do you normally require a deposit before starting work on a project?,Do you normally use a contract?,Do you primarily work …,What is the average value of projects you work on?,What is your gender?
7/26/2012 8:59:32,South East,Front-end Designer / Developer,Mixture of all three,15-19,0-1,240,240,2-3,By the hour,10-25% of project value,Yes,"directly with clients, in partnership with other freelancers, subcontracting for agencies",£1001-2000,Male
5/18/2012 10:04:17,East Midlands,"Graphic Design, Front End Developer",Design ,25-29,6-7,220,220,2-3,By the hour,10-25% of project value,Yes,"directly with clients, in partnership with other freelancers, su
@jackfranklin
jackfranklin / hang.js
Created November 30, 2012 14:44 — forked from remy/hang.js
How to hang JavaScript (useful - to me - for slowing down code and testing)
function hang(n) {
var x = new XMLHttpRequest();
x.open('GET', 'http://hang.nodester.com/script.js?' + n, false);
x.send();
}
// usage: hang(2 * 1000);
@jackfranklin
jackfranklin / pr.md
Created November 27, 2012 11:47 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@jackfranklin
jackfranklin / macvim-padding
Created July 28, 2012 13:57 — forked from meleyal/macvim-padding
Add padding to MacVim windows
defaults write org.vim.MacVim MMTextInsetTop '10'
defaults write org.vim.MacVim MMTextInsetLeft '10'
defaults write org.vim.MacVim MMTextInsetBottom '10'
defaults write org.vim.MacVim MMTextInsetRight '10'
@jackfranklin
jackfranklin / rvm2rbenv.txt
Created June 21, 2012 18:42 — forked from brentertz/rvm2rbenv.txt
Switch from RVM to RBENV
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################
@jackfranklin
jackfranklin / pubsub.md
Created April 12, 2012 10:15 — forked from addyosmani/pubsub.md
Four ways to do Pub/Sub with jQuery 1.7 and jQuery UI (in the future)

#Four Ways To Do Pub/Sub With jQuery 1.7 and jQuery UI (in the future)

Between jQuery 1.7 and some of work going into future versions of jQuery UI, there are a ton of hot new ways for you to get your publish/subscribe on. Here are just four of them, three of which are new.

(PS: If you're unfamiliar with pub/sub, read the guide to it that Julian Aubourg and I wrote here http://msdn.microsoft.com/en-us/scriptjunkie/hh201955.aspx)

##Option 1: Using jQuery 1.7's $.Callbacks() feature:

$.Callbacks are a multi-purpose callbacks list object which can be used as a base layer to build new functionality including simple publish/subscribe systems. We haven't yet released the API documentation for this feature just yet, but for more information on it (including lots of examples), see my post on $.Callbacks() here: