Skip to content

Instantly share code, notes, and snippets.

@iainjmitchell
iainjmitchell / README.md
Last active May 29, 2019 14:20
BBC News Widget for Dashing

##Description Simple Dashing widget (and associated job) to display BBC News Stories.

##Dependencies nokogiri

Add it to dashing's gemfile:

gem 'nokogiri'
@iainjmitchell
iainjmitchell / Credentials.rb
Created June 10, 2013 18:54
Credentials as value object
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')
@iainjmitchell
iainjmitchell / README.md
Last active November 12, 2018 23:18
Guthub status widget for dashing

##Description Simple Dashing widget (and associated job) to display current github status.

##Dependencies httparty

Add it to dashing's gemfile:

gem 'httparty'