Skip to content

Instantly share code, notes, and snippets.

View joeyklee's full-sized avatar

Joey Lee joeyklee

View GitHub Profile
@joeyklee
joeyklee / diary-parser.js
Created October 29, 2019 05:04
quick demo for diary parser for student
const entries = `
10/12/2018 (Vancouver, Canada)
Today I flew to Vancouver and it was my first time in Canada. I can't believe how beautiful it is here.
My favorite thing about the city is how green it is and how beautiful the mountains are. I also love being on the ocean.
10/28/2019 (New York City, USA)
@joeyklee
joeyklee / installing-node-module-with-g-flag.md
Created October 14, 2019 14:38
Installing & testing a node_module locally with -g flag

OK so here’s what I ended up doing:

let’s say I just I cloned magicbook

cd magicbook
npm install
npm install -g ./ 

the last command adds it the reference to this repo to the global node_modules

@joeyklee
joeyklee / simple_crop.py
Created June 3, 2019 16:22
simple script to crop images
from PIL import Image
import os
# Getting the current work directory (cwd)
thisdir = os.getcwd() + "/images/santiago_urban_200/"
crop_rectangle = (36, 36, 164, 164)
# r=root, d=directories, f = files
for r, d, f in os.walk(thisdir):
for file in f:
@joeyklee
joeyklee / recursive-filter-remove.js
Created February 21, 2019 22:29
Nice use of filter and map to remove an item recursively found somewhere on stackoverflow
let myJson = {
"type": "list",
"name": "The P5.js Landscape",
"description": "This is a list of the P5.js landscape.",
"features": [
{
"type": "list",
"name": "Handy P5.js Tools",
"description": "This is a list of handy p5.js Tools ranging from commandline tools, project generators, and web editors.",
"features": [
@joeyklee
joeyklee / recursive-update-example.js
Created February 21, 2019 16:59
An example of using recursion to update a nested json file
let myList = {
"type": "list",
"name": "Hello world",
"description": "nestednesss!",
"features": [
{
"clientId": "-ACEnpvvPe",
"type": "list",
"name": "🌈",
"description": "",
@joeyklee
joeyklee / handy-p5js-tools.yaml
Created February 5, 2019 23:16
handy p5js tools structured for Nautilist
name: "Handy P5.js Tools"
description: "This is a list of handy p5.js Tools ranging from commandline tools, project generators, and web editors."
type: "SingleList"
features:
- url: "https://p5js.org/"
name: "p5js website"
description: "p5js is a javascript library to make coding more accessible to everyone"
- url: "https://editor.p5js.org/"
name: "The p5js web editor"
description: "A handy web editor for writing code in the browser and seeing your magic come alive"
@joeyklee
joeyklee / hello-world-nautilist.yaml
Created February 5, 2019 22:41
a hello world example of structuring lists of urls for Nautilist
name: "Hello Lovely People!"
description: "Making shareable and usable lists of links make my heart warm"
features:
- url: "https://itp.nyu.edu"
name: "ITP/IMA @ NYU"
description: "Based at NYU"
- url: "https://thecodingtrain.com/"
name: "@Shiffman's Coding Train"
description: "All aboard the Coding Train with Daniel Shiffman, a YouTube channel dedicated to beginner-friendly creative coding tutorials and challenges."
- url: "https://p5js.org/"
@joeyklee
joeyklee / what-is-itp.md
Last active January 25, 2019 17:41
Some links collected for things that represent ITP
@joeyklee
joeyklee / OpenSourceStretch.md
Created December 7, 2018 19:20
open source stretch
From Sara, as presented at #mozlando w/ EOY fundraising modifications (changed to grants)

Reaching for all of our open source dreams (arms up)
Reaching the grassroots (reach toes)
Come back up in the blowing of the winds of change (arms back and forth)
Reach out and shake the money tree in time for grant applications (arms forward, shake imaginary tree)
Lean left to avoid the NSA (hands on hips, lean left)
Lean right to avoid the NSA (hands on hips, lean right)
Go all around to avoid the NSA (hands on hips, lean all around)