Skip to content

Instantly share code, notes, and snippets.

View jkwok91's full-sized avatar

JESSICA jkwok91

View GitHub Profile
@jkwok91
jkwok91 / background.js
Last active April 28, 2017 02:12
chrome extension because i felt like it
var dagensOrd;
chrome.tabs.onCreated.addListener(function(tab) {
if (!dagensOrd) {
checkIfOrdSet();
}
getOrd();
});
function checkIfOrdSet() {
@jkwok91
jkwok91 / flappyLand.js
Last active April 9, 2017 18:41
flap
// based on dan shiffman's coding challenge #11
// draw terrain as triangle_strips
// then manipulate vertices of the triangle_strips
var points;
var cols, rows;
var unit;
var minZ, maxZ;
@jkwok91
jkwok91 / 20170408.js
Created April 9, 2017 05:02
cuz she's so highhhhhhh / high above me / she's so lovely / she's so high / like cleopatra, joan of arc, or aphrodiiiiiiiite
// do i remember anything from three.js?????
// the answer is no
// kool weird jagged landscape that is totally not correct
var camera, scene, renderer;
init();
animate();
var polygons = [];
var unitSlider, unit;
function setup() {
createCanvas(500, 500);
unitSlider = createSlider(10, 100, 50);
unit = 0;
}
function draw() {
@jkwok91
jkwok91 / fractal1.js
Last active April 5, 2017 00:50
waaaazzzzaaaaa
// inspired by coding challenge #2
function setup() {
createCanvas(400, 400);
background(0);
noLoop();
}
function draw() {
var b = new Box(50, 50, 300, 1);
@jkwok91
jkwok91 / 20170106.js
Created January 7, 2017 00:45
im so fuckin' _dangerously defensive_. bite me.
// ulam spiral leggo
var start;
var N;
var sideLen;
function setup() {
createCanvas(500,500);
background(0);
sideLen = 20;
@jkwok91
jkwok91 / adventureGameWorkshop.md
Last active March 17, 2016 23:07
first draft of a soon to be unmanageable workshop.

Adventure Workshop

Welcome to a workshop in which you will write a text adventure game purely in HTML. That's right! All you need is HTML. And a desire to tell a story that blazes with the ferocity of a thousand suns. Let's get started!

Live Demo here: here

Set-up

Go to Cloud9 and log in. Then, create a new directory for this workshop, naming it text_adventure. Then, create a new file, naming it index.html. This is where you will introduce the player to your adventure game.

@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 / baking.py
Last active February 27, 2016 10:16
i never use my goddamn wit.ai powered baking converter (it makes a lot of mistakes and i never made a proper UI), so i decided to just whip up some quick python raw_input shit so i can bake some goddamn muffins right now
units = ["cup","tbsp","tsp"]
# ingred are grams per 1 cup
ingred = {
"cinnamon": 124.8,
"flour": 125,
"bread flour": 125,
"whole wheat flour": 125,
"cake flour": 113.398,
"butter": 226.888,
"baking powder": 220.973,
@jkwok91
jkwok91 / hack_club_curriculum_engineer.md
Last active February 5, 2016 08:06
HackLub is hiring a full-time curriculum engineer

Want to work on open source full-time and bring coding clubs to high schoolers around the world? HackLub is hiring a curriculum engineer to build out our open-source club curriculum.

The ideal candidate is actively involved in the open source community, has professional experience as an engineer (or the open source equivalent), and is already involved in getting more people coding (whether through hackathons, meetups, or something else).

Comment or shoot me an email at zach@hacklub.com if you're interested :-).