I hereby claim:
- I am sstarr on github.
- I am sstarr (https://keybase.io/sstarr) on keybase.
- I have a public key whose fingerprint is 0A09 E5BF 1F8E 14F7 B703 53A7 77A7 384A BBA0 C7AE
To claim this, I am signing this object:
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
" 256 colours, please | |
set t_Co=256 | |
" Dark twilight scheme | |
set background=dark | |
colorscheme twilight256 |
class Profile < ActiveRecord::Base | |
# ... | |
def format_twitter_url | |
unless self.twitter_url.blank? || self.twitter_url[/^https?:\/\//] | |
if self.twitter_url[/twitter\.com/i] | |
self.twitter_url = 'http://' + self.twitter_url | |
else | |
self.twitter_url = "https://twitter.com/#{self.twitter_url.sub(/@/, '')}" |
I hereby claim:
To claim this, I am signing this object:
## CSV Specification | |
### Columns | |
* Applicant Reference => applicant_reference (Required) | |
* First Name => first_name (Required) | |
* Last Name => last_name (Required) | |
* Email => email (Required) | |
* Stage => stage (Required) | |
* Applied (Survey 1) |
<p> | |
<span class="add-multi-asset">Add Another File</span> | |
(<span class="types">Images</span>) | |
</p> |
(function(b) { | |
var e, d, a = [], | |
c = window; | |
b.fn.tinymce = function(j) { | |
var p = this, | |
g, k, h, m, i, l = "", | |
n = ""; | |
if (!p.length) { | |
return | |
} |
class AvatarUploader < CarrierWave::Uploader::Base | |
# ... | |
def public_id | |
# 'production-profile-simon-starr' | |
return "#{Rails.env}-#{model.class.to_s.downcase}-#{model.profile.slug}" | |
end | |
end | |
end |
Some bits and bobs for sale, available for collection from Bradford on Avon or central Bath... | |
* 27" Apple Thunderbolt Display, £750 | |
* Lavolta Elevated Riser Monitor Stand (8cm high, black), £23 | |
* Griffin Elevator laptop stand, £15 | |
* Apple Wireless Keyboard (barely used), £49 | |
* Apple Magic Trackpad (barely used), £49 | |
All prices include VAT and I’ll give you a VAT invoice so you can claim it back. | |
You can pay with cash, bank transfer or credit card (if you're happy to cover Stripe's modest fee). |
require 'rubygems' | |
require 'open-uri' | |
require 'xml' | |
# Grab the raw XML from FriendFeed using open-uri | |
raw_xml = open("http://friendfeed.com/api/feed/user/simonstarr?format=xml").read | |
# Parse the XML with LibXml | |
# (this is where the magic happens) | |
source = XML::Parser.string(raw_xml) # source.class => LibXML::XML::Parser |
#!/usr/bin/env ruby | |
# Basic titlebot for JsChat (http://jschat.org) | |
# Run 'gem install eventmachine' (with sudo if required) if your computer doesn't have it | |
# gem might also be gem1.8 if you got it from Debian/ubuntu | |
require 'rubygems' | |
require 'eventmachine' | |
require 'json' | |
require 'open-uri' |