Skip to content

Instantly share code, notes, and snippets.

View jkwok91's full-sized avatar

JESSICA jkwok91

View GitHub Profile
@jkwok91
jkwok91 / recruitingTipz1.js
Last active January 13, 2016 20:37
recruiters scraping github could put in a little more effort. especially when addressing me as JESSICA in all caps
/* test cases
assert is just a return a===b function. we all know this. these are strings. everyone relax.
assert("Jessica",format("JESSICA"));
assert("Jessica Kwok",format("JESSICA KWOK"));
assert("Jessica Kwok-Kwok",format("JESSICA KWOK-KWOK"));
assert("Jessica Kwok-$wok",format("JESSICA KWOK-$WOK"})); // this fails because i don't care enough
assert("Jessica Kwok-$$$$",format("JESSICA KWOK-$$$$"));
assert("J'essica",format("J'ESSICA")); // this fails too because am i a mind reader how should i know how you want your name formatted
*/
@jkwok91
jkwok91 / mergesort.hs
Created March 7, 2015 00:21
took me like a thousand years to realize that the end is [x] and not []... i've learned this...how many times? fuck my life. if this is bad then i am sorry
merge xs [] = xs
merge [] xs = xs
merge (x:xs) (y:ys)
| x > y = y:(merge (x:xs) ys)
| otherwise = x:(merge xs (y:ys))
mergesort [] = []
mergesort [x] = [x]
mergesort xs = merge (mergesort (take n xs)) (mergesort (drop n xs))
where n = (length xs) `div` 2
@jkwok91
jkwok91 / unicodeNoise.pde
Created January 11, 2015 05:20
imitating ben's rust sketch
/*
unicode drawings
*/
void setup() {
size(400, 400);
}
String[] unicodez = {
" ", " ", "▩", "█", "█"
@jkwok91
jkwok91 / practice1.elm
Created October 27, 2014 04:29
ha ha ha ha!
{- here's a comment
there's a comment
everywhere a comment comment
-}
-- more comment
main : Element
main = asText (findHypotenuse 3 4)
-- practice problem gave me sqrt as a builtin fn
@jkwok91
jkwok91 / helloworld.djs
Created October 23, 2014 06:46
helloworld in dogescript!
plz console.loge with 'hello, world'
@jkwok91
jkwok91 / file1lol.txt
Created October 23, 2014 05:58
this is a test gist to see if i know how to use curl
yo man sup
@jkwok91
jkwok91 / barrier.js
Last active August 29, 2015 14:03 — forked from nmalkin/barrier.js
this is a thing nathan wrote. here is what i think this means
"use strict";
/*
this is for simulating a 3 second request? response? a thing that takes 3 seconds to respond
*/
function longRunningFunction1(onComplete) {
setTimeout(onComplete, 3000); // it takes a callback function that it will execute after 3 seconds
}
/*