Skip to content

Instantly share code, notes, and snippets.

View adonaldson's full-sized avatar

Andrew Donaldson adonaldson

View GitHub Profile
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Event do
it "should be refillable if the event is floating and not complete" do
event = Event.new(:complete => false)
event.stub!(:floating?).and_return true
event.should be_refillable
end
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Event do
it "should be refillable if the event is floating and not complete" do
event = Event.new(:complete => false)
event.stub!(:floating?).and_return true
event.should be_refillable
end
/* SASS */
#main_navigation
ul
margin: 0
padding: 0
list-style: none
li
width: 102px
height: 22px
@adonaldson
adonaldson / paromoan_macro
Created November 17, 2009 22:55
PAROMOAN! (A raid-leader macro for raid-rolling)
/script ChatThrottleLib:SendChatMessage('BULK', 'paromoan', 'Raid roll numbers:', 'RAID') for ii=1,GetNumRaidMembers(),1 do local n=GetRaidRosterInfo(ii);ChatThrottleLib:SendChatMessage('BULK','paromoan', ('' .. ii .. '. ' .. n), 'RAID') end
# Add the following to your .bash_profile for auto-completion
# (e.g. mvimgem <tabtab>)
#
# Modified to work with mvim instead of Textmate
# Original: http://effectif.com/articles/opening-ruby-gems-in-textmate
_mvimgem()
{
local curw
COMPREPLY=()
These are the steps I took to get the HSBC Bookmarklet (http://dies-el.co.uk/hsbc_bookmarklet) installed.
1. Get a copy of John Gruber's perl script to create bookmarklets (I've copied it and created a gist)
$ git clone git://gist.github.com/316867.git make-bookmarklet
2. Get a copy of Andrew Donaldson's HSBC auto logger inner
$ git clone git://gist.github.com/266260.git hsbc-bookmarklet
// This is bloody ugly, but it works! Hooray!
// One of the early NEHE tutorials, compiled using:
// gcc -framework GLUT -framework OpenGL triangle_square_colour_rotate.c -o triangle_square_colour_rotate -Wall
#include <stdio.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h> /* glut.h includes gl.h and glu.h*/
0,15,30,45 * * * * /Users/andrew/bin/start_cijoe > /dev/null 2>&1
0,15,30,45 * * * * /Users/andrew/bin/start_cijoe_tunnel > /dev/null 2>&1
<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1"
creator="GMapToGPX 6.4b - http://www.elsewhere.org/GMapToGPX/"
xmlns="http://www.topografix.com/GPX/1/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
<rte>
<name>Gmaps Pedometer Route</name>
<cmt>Permalink: <![CDATA[
Permalink unavailable.
rstakeout_model_spec()
{
rstakeout "script/spec spec/models/$1_spec.rb $2" "app/models/*.rb" "spec/models/$1_spec.rb"
}