Skip to content

Instantly share code, notes, and snippets.


Vince Hodges vhodges

View GitHub Profile

Keybase proof

I hereby claim:

  • I am vhodges on github.
  • I am vhodges ( on keybase.
  • I have a public key ASD6ZpmuELJUucNbdy_G3Mu4KNCzblyTigxb_2HFUZtwvAo

To claim this, I am signing this object:

vhodges / metropolis.css
Last active Jul 28, 2020
A version of the Beamer theme Metropolis for reveal.js
View metropolis.css
* A simple theme for reveal.js presentations, derived from serif.css
* It's in the spirit of the Metropolis theme for beamer
* This theme is Copyright (C) 2016 Vince Hodges, - it is MIT licensed.
@import url('');
.reveal a {
View One.txt
Verifying that +vhodges is my blockchain ID.
View gist:7d4ab1f056e55e3e9390
// Have your various container objects implement this method
// and move the type specific code to it.
type GameObject interface {
AfterLoad() err
Id() string // It may be possible to replace AfterLoad() with Id - I didn't really look to see what the different blocks were doing.
vhodges / Gemfile
Created Oct 26, 2011
Code to listen to redis pubsub channel for events and send them to connected clients
View Gemfile
source ''
gem "hiredis", "~> 0.3.1"
gem "em-synchrony"
gem 'em-hiredis'
#gem "redis", "~> 2.2.0", :require => ["redis/connection/synchrony", "redis"]
gem "goliath"
#gem 'em-synchrony', :git => 'git://'
vhodges / printcheque.rb
Created Jan 14, 2011
Print cheques from ruby using Prawn
View printcheque.rb
require 'rubygems'
require 'prawn'
require 'prawn/security'
require "prawn/layout"
require 'linguistics' # For the amount in english words. sudo gem install linguistics
Linguistics::use( :en ) # extends Array, String, and Numeric
# Quick and a little dirty first pass to be able to print cheques
vhodges / gist:645794
Created Oct 25, 2010
Example Gemfile.local
View gist:645794
# This is a Gemfile local to this system
gem 'mysql'
vhodges / gist:645784
Created Oct 25, 2010
Allow for local additions to a Gemfile.
View gist:645784
if File.exists?("Gemfile.local")
contents ="Gemfile.local")
rescue Exception => e
puts "Exception = #{e.inspect}"
View gist:579300
vince-hodges-macbook-3:code vhodges$ sudo port sync
vince-hodges-macbook-3:code vhodges$ sudo port install rabbitmq-server
Error: Unable to execute port: invalid command name "livecheck.type"
vince-hodges-macbook-3:code vhodges$ sudo -s
bash-3.2# port install rabbitmq-server
Error: Unable to execute port: invalid command name "livecheck.type"
bash-3.2# port update
Unrecognized action "update"
You can’t perform that action at this time.