I hereby claim:
- I am sotoseattle on github.
- I am sotoseattle (https://keybase.io/sotoseattle) on keybase.
- I have a public key ASAK-TgRq1RpxsIJdy2K0dMLb8jMNFS68AKZgSOCKo0mvwo
To claim this, I am signing this object:
class Node | |
attr_accessor :val, :next | |
def initialize(val) | |
@val = val | |
@next = nil | |
end | |
end | |
class List | |
attr_accessor :head |
I hereby claim:
To claim this, I am signing this object:
require 'primo' | |
ASS = %w(FF Ff ff) | |
module Probe | |
def puffreduce(probs, rango) | |
negos = probs.map{|p| 1-p} | |
ixes = (0..(probs.size-1)).to_a | |
sol = 0 | |
rango.each do |i| |
You are back to the future. It is 1972. You, freshly out of high school and after a whole night of BBS and root beer have had an epiphany, a great idea that will make you rich: a video game console called Ataxy, and a game of tabble tennis you will call Ping Pang Pong! The goal of this exercise is to write the video game's software.
Using the graphics gem create a canvas in which a single ball/point bounces against the walls.
Requirements:
#!/usr/bin/ruby -w | |
require "graphics" | |
require "set" | |
class ZenspiderGol | |
delta = [-1, 0, 1] | |
same = [0, 0] | |
DELTAS = (delta.product(delta) - [same]).sort |