Skip to content

Instantly share code, notes, and snippets.

View cavebatsofware's full-sized avatar
🧙

Grant DeFayette cavebatsofware

🧙
  • NY
View GitHub Profile
@cavebatsofware
cavebatsofware / incursion_generator.vb
Created November 21, 2012 21:31
Temporal Incursion Generator
Imports System.Transactions
Class TemporalIncursionGenerator
Public Property ClientID As String
Public Property TransactionID As String
Public Property UserID As String
Private transaction_table As New DataTable
Private query_command As New System.Text.StringBuilder("")
Private command As New MySqlCommand()
@cavebatsofware
cavebatsofware / weight.rb
Created November 20, 2012 20:24
weight classes
class Weight
def method_missing(method_id)
return nil if self.class == Weight
name = method_id.id2name
result = nil
if name =~ /^to_(\w+)s$/
klass = eval $1.capitalize
result = klass.from_ounces(self.to_ounces)