Skip to content

Instantly share code, notes, and snippets.

Vince Hodges vhodges

Block or report user

Report or block vhodges

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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 Jul 4, 2019
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 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 {
View One.txt
Verifying that +vhodges is my blockchain ID. https://onename.com/vhodges
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
vhodges / Gemfile
Created Oct 26, 2011
Code to listen to redis pubsub channel for events and send them to connected clients
View Gemfile
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 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
vhodges / gist:645794
Created Oct 25, 2010
Example Gemfile.local
View gist:645794
# This is a Gemfile local to this system
gem 'mysql'
@vhodges
vhodges / gist:645784
Created Oct 25, 2010
Allow for local additions to a Gemfile.
View gist:645784
if File.exists?("Gemfile.local")
begin
contents = File.read("Gemfile.local")
eval(contents)
rescue Exception => e
puts "Exception = #{e.inspect}"
end
end
View gist:579300
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"
You can’t perform that action at this time.