Skip to content

Instantly share code, notes, and snippets.

View timbogit's full-sized avatar

Tim Schmelmer timbogit

View GitHub Profile
@timbogit
timbogit / test.json
Created March 12, 2014 23:55
test gist from gist-it app
{"hello": "world"}
@timbogit
timbogit / keybase.md
Created March 15, 2014 00:07
keybase.md

Keybase proof

I hereby claim:

  • I am timbogit on github.
  • I am timbo (https://keybase.io/timbo) on keybase.
  • I have a public key whose fingerprint is 0CD5 7CF6 3F1B 0738 9C42 88CE 5C03 85B5 D217 24BF

To claim this, I am signing this object:

@timbogit
timbogit / aprb_2014_soa_workshop.md
Created April 27, 2014 14:13
Script of the workshop part for the presentations

AbrilPro Ruby

SOA from the Start - Workshop Part


What will we show

We are building a set of applications that have will show deals (aka. 'inventory items') available in or near a given city. These items can also be organized by a 'category' (aka. tags), to cater to the various customers' areas of interest.

To bootstrap things, and to get us focussed on some key areas of developing in a SOA, we have gone ahead and built these apps out at varying stages. The workshops will focus on showing some of this code, and intersperse exercises to add features, or to refactor.

@timbogit
timbogit / problem_73.clj
Created February 10, 2015 03:52
Solution to Problem 73
#(first (reduce-kv
(fn [res k v]
(if (or
(clojure.set/subset? #{0 1 2} v)
(clojure.set/subset? #{3 4 5} v)
(clojure.set/subset? #{6 7 8} v)
(clojure.set/subset? #{0 3 6} v)
(clojure.set/subset? #{1 4 7} v)
(clojure.set/subset? #{2 5 8} v)
(clojure.set/subset? #{0 4 8} v)
@timbogit
timbogit / eigenclasses.rb
Created March 8, 2012 05:19
Musing on the Ruby object model in Ruby 1.8.7 vs. 1.9.3
obj = Object.new
puts "obj is #{obj}"
eigobj = class << obj
self
end
puts "Eigenclass of obj is #{eigobj}"
puts "Superclass of the eigenclass of obj is #{eigobj.superclass}"
eigclassobj = class << obj.class
@timbogit
timbogit / slice_ex.go
Last active December 17, 2015 01:19
Go exercise for "Slices"
package main
import "code.google.com/p/go-tour/pic"
func Pic(dx, dy int) [][]uint8 {
// allocate 'dy' row slices of []unit8
rows := make([][]uint8, dy)
for i, row := range rows {
// allocate 'dx' uint8 points in each row
row = make([]uint8, dx)
@timbogit
timbogit / maps_ex.go
Created May 7, 2013 04:01
Maps exercise in Go tour
package main
import (
"code.google.com/p/go-tour/wc"
"strings"
)
func WordCount(s string) map[string]int {
res := make(map[string]int)
@timbogit
timbogit / cubic_root_ex.go
Created May 7, 2013 15:13
Cubic Root exercise for Go lang tour
package main
import (
"fmt"
"math/cmplx"
)
func Cbrt(x complex128) complex128 {
z := complex128(1)
for i := 0; i < 100; i++ {
@timbogit
timbogit / http_server_ex.go
Created May 8, 2013 03:49
Go tour HTTP Server exercise
package main
import (
"fmt"
"net/http"
)
type String string
@timbogit
timbogit / bintree_ex.go
Created May 9, 2013 03:28
Go lang tour exercise around Equivalent Binary Trees
package main
import (
"code.google.com/p/go-tour/tree"
"fmt"
)
// Walk walks the tree t sending all values
// from the tree to the channel ch.
func Walk(t *tree.Tree, ch chan int) {