Skip to content

Instantly share code, notes, and snippets.

View iaincollins's full-sized avatar
:shipit:

Iain Collins iaincollins

:shipit:
View GitHub Profile
@jacqui
jacqui / alc
Created March 2, 2015 17:08
quick hack to pull concepts, keywords or entities out of any url using AlchemyAPI
#!/usr/bin/env ruby
# USAGE:
#
# ./alc [action] [url]
# ex:
# ./alc keyword http://www.bbc.co.uk/news/magazine-31556802
# ./alc concept http://www.bbc.co.uk/news/magazine-31556802
# ./alc entity http://www.bbc.co.uk/news/magazine-31556802
#
@basilesimon
basilesimon / list.csv
Last active August 29, 2015 14:16
General Election 2015 candidates' Twitter handles
WAKLibDems RuthSmeeth mitch_1uk Go4Lowe ReshamKotecha Jack_Tinley iaingartside votejamesberry CllrScottMann CllrAnnSteward CharlotteHT_ julianknight15 lindsey4wnorth KevinGillottPPC WillJMartindale SamJRushworth RuthCadbury Mari_Williams JoeCookeLabour paulasherriff natashamillward rupahuq Steph_Peacock CatherineWest1 RichardBurgon lloydrm ToddDForeman Jessica_Asato annaturley SachinPatel_87 wdjstraw HuwSECambLabour KateVotesLabour JuliaTickridge clairethomas1 liverlibdems DrJennyWoods gracelibdem liz4stratford JackieLibDem ann4oxfordeast DavidHMalone derbynukipppc Neilkelly13 stevenjbrookes green_mac robjlinds MachanUkip ettiespencer howell_karen charliekiss brisfox CllrMattBrown cllrsrichardson angelamawle ianddriver dinahkeal emmawarman mapesburygreen maureenchilds2 davidschofiel18 CllrRichardLee ukip_swindon idhamramadi kevin_kerrigan1 xanderedz77 paulhalliday PaulForWest
@jacqui
jacqui / dear_friend
Created August 20, 2014 21:16
It's been ages since I've received one of these, and I haven't had the opportunity to work with Phillip Morris before!
My Dear Friend, be my expected future partner,
My name is Mr.Phillip Morris. I am a banker here in Ghana. I got your contact from the online data base. I need your help to transfer the sum of US$12,500,000.00 into your account as my foreign investment partner. The money is part of the profits made by our bank last year (i.e. 2013) in the branch where I am the manager. I have already submitted annual report for last year to my bank head office in Accra - Ghana, and they did not notice the excess profits.
Meanwhile, I deposited the US$12,500,000.00 in an escrow account without a beneficiary (Anonymous), to avoid any trace. I cannot be directly connected to this fund because I'm still working with the bank. So, I need your help to transfer this money to your country for you and I to share. I have the desire to invest my own share of the money in any good business venture over there in your Country. I wish to point out 10% of this money to be shared among the charity organization, the remaining 90%, you have
{
"Blocks": [
{
"Id": "24",
"Type": "bang",
"Rule": null,
"Position": {
"X": 309,
"Y": 79
}
@digitaljhelms
digitaljhelms / gist:4287848
Last active April 26, 2024 10:44
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@mikeabiezzi
mikeabiezzi / Rakefile
Created June 25, 2012 00:44
Patch to Resque that stops workers from picking up a new job when Resque is "paused"
task "resque:pause" => :environment do
Resque.redis.set "resque_paused", true
puts "Resque paused."
end
task "resque:resume" => :environment do
Resque.redis.set "resque_paused", false
puts "Resque resumed."
end
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"