Skip to content

Instantly share code, notes, and snippets.

@m0nocle
m0nocle / Makefile
Created December 4, 2011 14:53
Go Websocket example
run: clean example
./example
include $(GOROOT)/src/Make.inc
TARG=example
GOFILES=\
main.go\
include $(GOROOT)/src/Make.cmd
@m0nocle
m0nocle / about_scoring_project.rb
Created August 7, 2011 00:13
My attempt on Ruby Koans, Scoring Project.
require File.expand_path(File.dirname(__FILE__) + '/edgecase')
# Greed is a dice game where you roll up to five dice to accumulate
# points. The following "score" function will be used calculate the
# score of a single roll of the dice.
#
# A greed roll is scored as follows:
#
# * A set of three ones is 1000 points
#