Skip to content

Instantly share code, notes, and snippets.

View jonathanpeterwu's full-sized avatar
🎯
Focusing

Johnny Wu jonathanpeterwu

🎯
Focusing
  • Los Angeles
View GitHub Profile
let opt = document.getElementsByClassName('grid-5')
const delta = parseFloat(opt[1].children[0].children[2].textContent)
const gamma = parseFloat(opt[1].children[1].children[2].textContent)
const theta = parseFloat(opt[1].children[2].children[2].textContent)
const vega = parseFloat(opt[1].children[3].children[2].textContent)
const rho = parseFloat(opt[1].children[4].children[2].textContent)
let price = parseFloat(document.getElementsByClassName('up')[0].children[0].children[0].textContent.replace( /[^0-9]/, '' ))
@jonathanpeterwu
jonathanpeterwu / command_line.rb
Created December 17, 2013 00:57
Command Line Challenge Gist
2031 git clone https://gist.github.com/jonathanpeterwu/789c8d69344bd3c62f13
2032 git clone https://gist.github.com/789c8d69344bd3c62f13.git
2033 ls
2034 mkdir CLI-Obstacle-Course
2035 mv 789c8d69344bd3c62f13
2036 mv 789c8d69344bd3c62f13 source CLI-Obstacle-Course
2037 ls
2038 mkdir CLI-Obstacle-Course/
2039 ls
2040 cd CLI-Obstacle-Course
@jonathanpeterwu
jonathanpeterwu / 0.2.1-boggle_class_from_methods.rb
Last active December 29, 2015 18:59 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
def initialize(dice_grid)
@boggle_board = dice_grid
end
def create_word(*coords)
coords.map { |coord| @boggle_board[coord.first][coord.last]}.join("")
background: #a09;
background: linear-gradient(45deg, #c02, green);
min-height:100%;
text-align: center;