Skip to content

Instantly share code, notes, and snippets.

View vhodges's full-sized avatar

Vince Hodges vhodges

  • Employ Inc
  • Vancouver Canada
View GitHub Profile

Keybase proof

I hereby claim:

  • I am vhodges on github.
  • I am vhodges (https://keybase.io/vhodges) on keybase.
  • I have a public key ASD6ZpmuELJUucNbdy_G3Mu4KNCzblyTigxb_2HFUZtwvAo

To claim this, I am signing this object:

@vhodges
vhodges / metropolis.css
Last active December 18, 2023 05:33
A version of the Beamer theme Metropolis for reveal.js
/**
* A simple theme for reveal.js presentations, derived from serif.css
* It's in the spirit of the Metropolis theme for beamer https://github.com/matze/mtheme
*
* This theme is Copyright (C) 2016 Vince Hodges, http://sourdoughlabs.com - it is MIT licensed.
*/
@import url('https://fonts.googleapis.com/css?family=Fira+Sans');
.reveal a {
Verifying that +vhodges is my blockchain ID. https://onename.com/vhodges
...
// 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
vhodges / Gemfile
Created October 26, 2011 14:20
Code to listen to redis pubsub channel for events and send them to connected clients
source 'http://rubygems.org'
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://github.com/igrigorik/em-synchrony.git'
@vhodges
vhodges / printcheque.rb
Created January 14, 2011 23:46
Print cheques from ruby using Prawn
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
vhodges / gist:645794
Created October 25, 2010 21:21
Example Gemfile.local
# This is a Gemfile local to this system
gem 'mysql'
@vhodges
vhodges / gist:645784
Created October 25, 2010 21:19
Allow for local additions to a Gemfile.
if File.exists?("Gemfile.local")
begin
contents = File.read("Gemfile.local")
eval(contents)
rescue Exception => e
puts "Exception = #{e.inspect}"
end
end
vince-hodges-macbook-3:code vhodges$ sudo port sync
Password:
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"