Skip to content

Instantly share code, notes, and snippets.

A ballad for a flawed man
by Jamie Rumbelow (Atlas)
=========================
Maybe my life’s a little more sussed out
Than I give myself credit for?
And maybe my head’s much more rational
Than it used to be before?
And possibly possibly have I learnt
That I’m living life like I should be?
Capo 2
C9, E, Am, F
I’m not sorry because I lost,
And I’m not sorry that you’ve crossed
Every ’t’ that was
present there in front of me
Still, I can’t understand the “why”
You forgot to dot an ‘i’
Holly
by Atlas
All chords relative to Capo 6 (Key of F#)
G* = Open G (slide 2 frets)
G#m* = Open G#m (slide 8 frets from C)
G
Holly,
Capo 5
C, Am, F, G
You’re sauntering about the place,
Like some kind of tragedy,
Like you really ought not to be there.
On the floor, you’re nothing more,
nothing less than second best,
<?php
$options = array(
'jamie' => 'Jamie',
'jeremy' => 'Jeremy',
'alex' => 'Alex',
'bradley' => 'Bradley',
'ellen_page' => 'Ellen Page <3'
);
$selected_option = 'jamie';
class Worker
attr_accessor :host, :port
def initialize(opts)
opts.each { |key, val| instance_variable_set(key, val) }
Beanstalk::Pool.new(["#{@host}:#{@port}"])
end
end
>> Worker.new({ :host => 'localhost', :port => 11300 })
@jamierumbelow
jamierumbelow / primes.rb
Created December 29, 2010 23:32
A quick prime number finder
# Prime number finder
# Usage: 20.primes, 100.primes
module GetAllPrimeNumbers
def primes
# Get all numbers from 0 to the current number as an array
nums = (0 .. self).to_a
# We know 0 and 1 can't be prime
nums[0] = nums[1] = nil
@jamierumbelow
jamierumbelow / gist:735156
Created December 9, 2010 19:00
Discussing business with @dreadfullyposh
[09/12/2010 18:58:18] Jamie Rumbelow: I think you're unfairly pestering me for cash
[09/12/2010 18:58:59] Jeremy Gimbel: your contract is 15 day terms
[09/12/2010 18:59:09] Jeremy Gimbel: the invoices come at the end of each month
[09/12/2010 18:59:12] Jamie Rumbelow: oh you have to get all legal on my arse
[09/12/2010 18:59:31] Jeremy Gimbel: i'm paying for hosting, i developed the site. i need to be paid for it
[09/12/2010 18:59:35] Jamie Rumbelow: I run a Marijuana business
[09/12/2010 18:59:39] Jamie Rumbelow: It'll get done!
[09/12/2010 18:59:43] Jamie Rumbelow: Just might take a while
[09/12/2010 18:59:49] Jamie Rumbelow: And might be quicker if cake is involved
@jamierumbelow
jamierumbelow / third_party_library.php
Created December 4, 2010 15:27
An example of why PHP preprocessing would be cool
<?php
/**
* Some third party library
*/
// Quick and easy dynamic namespacing
#ifndef LIB_NAMESPACE
#define LIB_NAMESPACE addon
#endif
CodeIgniter Masterclass
=======================
Discover the art of CodeIgniter development, brush up on all the latest techniques, lead by some of the pioneering CodeIgniter developers.
Introduction
------------
CodeIgniter is a flexible, powerful and downright sexy web application framework. Want to start writing your web app without messing around in the command line, configuring the system or working with complicated constraints? CodeIgniter is the PHP framework for everyone, combining exceptional performance with simple, powerful syntax.