Skip to content

Instantly share code, notes, and snippets.

View scizo's full-sized avatar

Scott Nielsen scizo

  • Salt Lake City, UT
View GitHub Profile

Keybase proof

I hereby claim:

  • I am scizo on github.
  • I am smniel (https://keybase.io/smniel) on keybase.
  • I have a public key whose fingerprint is 02E8 D67C 3587 1792 AC07 143C 2BE9 606E D120 30FE

To claim this, I am signing this object:

@scizo
scizo / nebulabrot.html
Created June 7, 2013 22:24
Nebulabrot forked from Jeremy Ashkenas' Buddhabrot in coffeescript
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<canvas id="buddhabrot" width="1000" height="1000"></canvas>
<div id="images"></div>
<script type="text/javascript">
var canvas = document.getElementById('buddhabrot'),
@scizo
scizo / roman-numeral.js
Last active December 12, 2015 08:19
Roman Numeral Exercise
function romanNumeral(n) {
var result = '',
thousands = integerDivision(n,1000),
hundreds = integerDivision((n % 1000),100),
tens = integerDivision((n % 100),10),
ones = n % 10;
result += stringTimes(thousands,'m');
result += romanHelper(hundreds,'c','d','m');
result += romanHelper(tens,'x','l','c');
@scizo
scizo / gist:3375107
Created August 17, 2012 01:19
recursive factorial
(defn factorial [n]
(loop [n n
tally 1]
(if (< n 1)
tally
(recur (dec n) (* n tally)))))
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
@window.rootViewController = ExampleViewController.alloc.init
@window.makeKeyAndVisible
true
end
end
@scizo
scizo / observe.rb
Created April 25, 2012 01:46
Observer / Tk Demo
require 'observer'
class TestObservable
include Observable
def initialize(name)
@name = name
end
def change_with(value)
@scizo
scizo / Gemfile
Created January 25, 2012 01:53
AMQP Demo
source :rubygems
gem 'bunny'
gem 'json'
@scizo
scizo / liard.rb
Created May 13, 2011 15:02
Liar's Dice
require 'eventmachine'
module Liard
TEST = false
MINIMUM_PLAYERS = 2
HELP = <<-END
-- Commands from client
BID <num> <val> Creates a bid of "num vals (e.g. four 3's)"