Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>acme frontend</title>
</head>
<body>
<div id="root"></div>
<script src="/js/main.js"></script>
</body>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>acme frontend</title>
</head>
<body>
<div id="root"></div>
<script src="/js/main.js"></script>
</body>
@joannecheng
joannecheng / rayshader-notes.mkd
Last active December 10, 2019 19:36
Rayshader installation notes

System

sudo apt-get install libgdal-dev libtiff-dev imagemagick libxt-dev libgtk2.0-dev xvfb xauth xfonts-base libcairo2-dev

R Requirements

@joannecheng
joannecheng / rayshader-notes.mkd
Created December 10, 2019 17:55
Rayshader installation notes

System

sudo apt-get install libxt-dev libgtk2.0-dev xvfb xauth xfonts-base libcairo2-dev

R Requirements

@joannecheng
joannecheng / Colorado.mkd
Last active February 4, 2020 07:17
Colorado Things to Do

DENVER

Things to do:

(no car needed if you're downtown):

  • See Union station, walk to the Highlands neighborhood through Confluence Park (near the REI). Walk up/down the Platte river trail.
  • Museums: Denver Art museum, Science Museum, Modern Art Museum, Sante Fe art district, Museo de las Americas
  • Parks: Cheeseman, City Park, Confluence Park (not exactly tourist spots, but I recommend staying around there because they're really nice areas and you'll be close to downtown).

Eating:

  • Uncle (favorite Ramen place)
@joannecheng
joannecheng / movie-to-gif.sh
Created April 3, 2019 08:17
Movie to GIF using ffmpeg
if [ $# -eq 0 ] ; then
echo "example use: 'movie-to-gif.sh [movie-file]'"
exit 0
fi
ffmpeg -i $1 -filter_complex "[0:v] palettegen" $1-palette.png
ffmpeg -i $1 -i $1-palette.png -filter_complex "[0:v][1:v] paletteuse" $1.gif
rm $1-palette.png
@joannecheng
joannecheng / package.json
Last active May 19, 2016 12:47
npm issue?
{
"name": "npm-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",

D3 code to plot a skew-T log-P diagram (refactoring)

@joannecheng
joannecheng / elm_notes.mkd
Last active May 19, 2016 12:47
Elm Things

Setting up a new development folder:

mkdir [projectname]
cd [projectname]
elm-reactor

include elm.js in html file.

@joannecheng
joannecheng / _.md
Last active May 19, 2016 12:47
Selection + transition example