Skip to content

Instantly share code, notes, and snippets.

View sstarr's full-sized avatar
🏠
Working from home

Simon Starr sstarr

🏠
Working from home
View GitHub Profile
571-187-661
141-852-370
954-700-406
997-847-345
745-141-212
286-180-138
812-747-746
964-270-942
262-372-429
482-337-966
mic-wet-pan
sin-bag-roy
biz-dom-mel
mat-yet-con
lap-pal-las
pay-bob-dem
faq-ted-gap
wan-had-bug
fox-gen-bad
say-bin-vid
@sstarr
sstarr / gb.sh
Created July 17, 2019 15:11
Returns a list of local branches, sorted by latest commit date, with the latest SHA, commit message, author, and age
git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
@sstarr
sstarr / Google Apps .zone File
Created February 1, 2017 14:46 — forked from clakeb/Google Apps .zone File
Quick .zone file to import when you are setting up Google Apps. I use it with CloudFlare. Enjoy.
; CNAME
calendar 1 IN CNAME ghs.googlehosted.com
drive 1 IN CNAME ghs.googlehosted.com
mail 1 IN CNAME ghs.googlehosted.com
sites 1 IN CNAME ghs.googlehosted.com
video 1 IN CNAME ghs.googlehosted.com
; MX
@ 1 IN MX 10 aspmx3.googlemail.com
@ 1 IN MX 1 aspmx.l.google.com
def possessive_name
# Profile name is a proper noun, so we add an apostrophe with or without 's' as appropriate
# e.g. Bob Smith's project or Bob Edwards' project
# See rule 1c. here: http://www.grammarbook.com/punctuation/apostro.asp
name[-1] == "s" ? "#{name}'" : "#{name}'s"
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).
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
(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
}
<p>
<span class="add-multi-asset">Add Another File</span>
(<span class="types">Images</span>)
</p>
## 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)