Skip to content

Instantly share code, notes, and snippets.

View hone's full-sized avatar

Terence Lee hone

View GitHub Profile
// cpp file
TheVisitor::TheVisitor()
{
depth = 0;
}
void TheVisitor::VisitElement( Element* thisele )
{
list<Attr*> attrcopy = thisele->Copyattrs();
list<Node*> nodecopy = thisele->Copynodes();
@hone
hone / gist:242351
Created November 25, 2009 00:05 — forked from anonymous/gist:242325
require 'optparse'
require 'scanner/scanner'
module SC
class SimpleCompilerError < RuntimeError
end
class CommandOptionError < RuntimeError
end
@hone
hone / gist:242352
Created November 25, 2009 00:05 — forked from anonymous/gist:242325
require 'optparse'
require 'scanner/scanner'
module SC
class SimpleCompilerError < RuntimeError
end
class CommandOptionError < RuntimeError
end
.gems
rails --version 2.3.4
aws-s3
warden --ignore-depedencies
bcrypt-ruby
devise --ignore-dependencies
validatable
RedCloth
json
@hone
hone / .gems
Created September 24, 2010 02:00 — forked from kineticac/.gems
mislav-will_paginate -s http://gems.github.com
libxml-ruby
rest-client -s http://gems.github.com
plist
aws-s3
htmlentities
paperclip
wireframe-apn_on_rails
configatron
geokit
@hone
hone / things.rb
Created April 21, 2011 23:11 — forked from wuputah/things.rb
things = Thing.order("id DESC").limit(100)
while things.any?
things.each do |thing|
# stuff
end
things = Thing.order("id DESC").limit(100).where(["id < ?", things.last.id])
end
class NewCard
attr_reader :cardname
def initialize(name, life, damage)
@cardname = name
@life = life
@damage = damage
end
def card
@hone
hone / speaker.md
Created July 1, 2012 19:21 — forked from matiaskorhonen/speaker.md
Frozen Rails Talk Proposal Template (http://2012.frozenrails.eu/)
@hone
hone / speaker.md
Created July 1, 2012 20:38 — forked from matiaskorhonen/speaker.md
Frozen Rails Talk Proposal Template (http://2012.frozenrails.eu/)
#!/usr/bin/env ruby
## disconnect
# ./disconnect.rb -u yourusername
#
# This is a command-line utility for the bulk-downloading of run data from
# the connect.garmin.com web application, which has lackluster export
# capabilities.
#