Skip to content

Instantly share code, notes, and snippets.


Javier Soto sotoseattle

  • Seattle, WA
View GitHub Profile
View gol2.rb
#!/usr/bin/ruby -w
require "graphics"
require "set"
class ZenspiderGol
delta = [-1, 0, 1]
same = [0, 0]
DELTAS = (delta.product(delta) - [same]).sort

Ping Pang Pong!

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.


  • Minimum: the ball hits the wall and shows up in the opposite wall (like Asteroids)
  • Intermediate: the ball hits the wall and it deflects with the right angle.
  • Advanced: Add a paddle (a horizontal movable wall) that you can control, and play Ping Pang Pong!!
View wtf.rb
require 'primo'
ASS = %w(FF Ff ff)
module Probe
def puffreduce(probs, rango)
negos ={|p| 1-p}
ixes = (0..(probs.size-1)).to_a
sol = 0
rango.each do |i|
sotoseattle /
Last active Jan 2, 2021
Not to be deleted

Keybase proof

I hereby claim:

  • I am sotoseattle on github.
  • I am sotoseattle ( on keybase.
  • I have a public key ASAK-TgRq1RpxsIJdy2K0dMLb8jMNFS68AKZgSOCKo0mvwo

To claim this, I am signing this object:

sotoseattle / gist:5123da60acda8cb98582
Last active Aug 29, 2015
Reverse a Linked List (should be refactored)
View gist:5123da60acda8cb98582
class Node
attr_accessor :val, :next
def initialize(val)
@val = val
@next = nil
class List
attr_accessor :head