Skip to content

Instantly share code, notes, and snippets.

View rubygem's full-sized avatar

Gemma Cameron rubygem

  • RubyGem of the Internets
  • Manchester
View GitHub Profile
@rubygem
rubygem / README.md
Last active August 29, 2015 14:15 — forked from petehamilton/README.md

Description

Dashing widget to show the status of builds from CircleCI. Also shows the avatar of the person who is running/breaking/passing the current build.

Usage

  • Get a Circle API Token from your Account Dashboard and set it in your environment as CIRCLE_CI_AUTH_TOKEN
  • Add the httparty to your Gemfile and run bundle install

Then:

@rubygem
rubygem / gist:8832339
Created February 5, 2014 20:26
MRD Template Bout Contract
var DATE_OF_BOUT = '<date_of_bout>';
var RETURN_GAME = '<return_game_required>';
var REQUIRED_TO_RETURN = '<required_to_return>';
var REQUIRED_WITHIN = '<required_within>';
var MIN_SKILLS = '<min_skills_year>';
var AWAY_TEAM = '<away_team>';
var HOME_TEAM = '<home_team>';
var totalSteps = 0;
var B_TEAM_MIN_SKILLS = '2010';
var A_TEAM_MIN_SKILLS = '2013';
@rubygem
rubygem / gist:6713081
Created September 26, 2013 11:51
My message queue code
require 'bundler/setup'
require 'bunny'
class MessageQueue
def initialize
@conn = Bunny.new(ENV['QUEUE'])
@queue_name = ENV['QUEUE_NAME']
end
def push(service)
puts " [x] Sending #{service} on #{@queue_name}"
class Credentials
attr_reader :username, :password
def initialize(parameters)
@username = parameters[:username]
@password = parameters[:password]
end
end
credentials = Credentials.new(:username => 'jimmy saville', :password => 'nowthennowthen')

24 hours is a long time in the world of technology.

IN your average day, Google handles more than 3-billion searches, Twitter sees over 200-million tweets, and the iOS App-Store sees more than 500 app submissions.

What can you do with 24 hours? Well, that's what we're hoping to find out. Enter: Hack Manchester, a 24-hour coding* competition in the heart of the world's first city of industry.

For a whole weekend 27th-28th October 2012, teams of up to four will be coding up a storm to solve a variety of challenges and present their rough-and-ready creations to an eager audience.

As a featured event for this year's Manchester Science Festival, the hack day will be held in the coolest venue imaginable: