Skip to content

Instantly share code, notes, and snippets.

View jackharrhy's full-sized avatar
🧅
onion

Jack Harrhy jackharrhy

🧅
onion
View GitHub Profile
def time_it(name : String)
before = Time.utc
yield
after = Time.utc
span = after - before
puts "#{name} took #{span.milliseconds}"
end
@jackharrhy
jackharrhy / cheet.js
Last active October 7, 2020 23:07
to give some context to this _horrible_ code; this was one of the first 'web apps' i ever wrote, when i was a novice to EVERYTHING programming, therefore the repetition is horrible. it is here to show how far i have come
var loopInterval = 500
log = document.getElementById('log');
var i = {
vdt: {
m: {
V: document.getElementById('uiV1'),
d: document.getElementById('uid1'),
t: document.getElementById('uit1')
},
V: document.getElementById('iV1'),