Public Gists by jamesu

Gravatar
Sat Nov 14 14:13:27 -0800 2009
1
2
3
#
# (C) 2009 Stuart J Urquhart.
# Licensed under the MIT License.
Gravatar
Sat Oct 10 12:29:51 -0700 2009
1
2
3
// Bookmarklet to read "title" hints on an iPhone
// Usage: Run boomarklet.
// Using two fingers, hold down on your desired image and await the hint popup.
Gravatar
Sun Apr 26 02:01:47 -0700 2009
1
2
3
#!/usr/bin/ruby
 
# csv_to_couch.rb - Simple script which plonks CSV files into CouchDB
Gravatar
Wed Mar 18 15:21:17 -0700 2009
1
2
3
/*
Hey there,
 
Gravatar
Tue Mar 17 01:54:56 -0700 2009
1
2
3
#include <stdio.h>
 
// datas
Gravatar
Thu Mar 05 03:55:54 -0800 2009
1
2
3
# Some people have been emailing me complaining that my calendar_helper code
# (http://gist.github.com/54116) doesn't work properly.
#
Gravatar
Thu Feb 26 01:29:53 -0800 2009
1
2
3
//
// MYAnimationView.h
// http://www.cuppadev.co.uk/iphone/animated-images-on-the-iphone-sans-memory-leaks
Gravatar
Wed Feb 25 07:13:32 -0800 2009
1
2
3
#!/bin/bash
 
REMOTE_HOST='whatever'
Gravatar
Mon Feb 23 10:11:47 -0800 2009
1
2
3
# Allows embedded YouTube videos in EchoWaves.
# Simply replace mark_up in app/helpers/messages_helper.rb with the following
# NOTE: Ignores the rest of the message with the YT url in it, so ideally needs to be merged with the line splitting conversion of url's.
Gravatar
Tue Feb 03 06:04:56 -0800 2009
1
2
3
##
# Posting stuff to EchoWaves using httparty
#
gist: 54116 http://www.cuppadev.co.uk/w...
Gravatar
Wed Jan 28 10:42:42 -0800 2009
1
2
3
##
# Calendar helper with proper events
# http://www.cuppadev.co.uk/webdev/making-a-real-calendar-in-rails/
gist: 44390 Parses dates from barcamp.o...
Gravatar
Wed Jan 07 11:57:28 -0800 2009
1
2
3
# Simple script to parse dates of Barcamp events from barcamp.org
#
# Outputs to barcamp.ics
Gravatar
Tue Jan 06 15:08:27 -0800 2009
1
2
3
# Simple script to consolidate multiple colloquy transcripts into a single HTML log
# Reads from logs/*.colloquyTranscript
Gravatar
Fri Oct 31 02:43:45 -0700 2008
1
2
3
First things first, Dreamhost can be a complete nightmare, so be prepared to loose your sanity over this.
 
1. I need gem x
Gravatar
Fri Oct 03 07:10:17 -0700 2008
1
2
3
  # Detects what server your Rails app is running under.
  # Either passenger, fastcgi, mongrel, webrick or thin