Skip to content

Instantly share code, notes, and snippets.

Scott Nielsen scizo

  • Salt Lake City, UT
Block or report user

Report or block scizo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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 Jun 7, 2013
Nebulabrot forked from Jeremy Ashkenas' Buddhabrot in coffeescript
View nebulabrot.html
<!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 Dec 12, 2015
Roman Numeral Exercise
View roman-numeral.js
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 Aug 17, 2012
recursive factorial
View gist:3375107
(defn factorial [n]
(loop [n n
tally 1]
(if (< n 1)
tally
(recur (dec n) (* n tally)))))
View app_delegate.rb
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 Apr 25, 2012
Observer / Tk Demo
View observe.rb
require 'observer'
class TestObservable
include Observable
def initialize(name)
@name = name
end
def change_with(value)
View Gemfile
source :rubygems
gem 'bunny'
gem 'json'
@scizo
scizo / liard.rb
Created May 13, 2011
Liar's Dice
View liard.rb
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)"
You can’t perform that action at this time.