Skip to content

Instantly share code, notes, and snippets.

View jkwok91's full-sized avatar

JESSICA jkwok91

View GitHub Profile
@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 / romanfuckinnumeralsbitch.js
Last active March 1, 2016 06:15
lol pbcopy. pbjelly. hehe. hehehe. heh. heh.
/*
this turns a number into a roman numeral
and a roman numeral into a number
*/
var NUMBERZ = {
1: 'I',
5: 'V',
10: 'X',
50: 'L',
@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
}
/*