- mac show hidden files: https://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/
- then go through and delete stuff: https://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x
- reinstall nodejs using brew: https://medium.com/@kkostov/how-to-install-node-and-npm-on-macos-using-homebrew-708e2c3877bd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let myList = { | |
"type": "list", | |
"name": "Hello world", | |
"description": "nestednesss!", | |
"features": [ | |
{ | |
"clientId": "-ACEnpvvPe", | |
"type": "list", | |
"name": "🌈", | |
"description": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
- slides
- Aerial Bold Project:
- ml5js.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head></head> | |
<body> | |
<img src="JL-sq.jpg" alt="" id="joey" /> | |
<script> | |
const joey = document.querySelector('#joey'); | |
toDataURL('JL-sq.jpg', function(dataUrl) { | |
const inputs = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Must be run in node.js | |
you can run this script by opening up your terminal: | |
``` | |
$ node nyc-dog-dataset-filterby-birthyear.js | |
``` | |
**/ | |
const fs = require('fs'); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.