Skip to content

Instantly share code, notes, and snippets.

@jlyon
jlyon / .block
Last active October 1, 2017 01:12 — forked from mbostock/.block
Epicyclic Gearing
license: gpl-3.0
@jlyon
jlyon / .block
Last active October 1, 2017 01:29 — forked from mbostock/.block
Force-Directed Graph
license: gpl-3.0
height: 600
@jlyon
jlyon / .block
Last active October 1, 2017 21:58 — forked from mbostock/.block
World Tour
license: gpl-3.0
@jlyon
jlyon / .block
Last active September 30, 2017 20:26 — forked from mbostock/.block
Collision Detection
license: gpl-3.0
@jlyon
jlyon / install.sh
Last active November 17, 2017 20:13
pi3
sudo apt-get install -y git
# Install nodejs
# From https://raspberrypi.stackexchange.com/questions/48303/install-nodejs-for-all-raspberry-pi
sudo bash
sudo wget -O - https://raw.githubusercontent.com/audstanley/NodeJs-Raspberry-Pi/master/Install-Node.sh | bash
exit
node -v
npm install -g pm2
# pm2 usage: https://stackoverflow.com/a/40254977
@jlyon
jlyon / youtube.html
Last active September 2, 2017 22:44
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>title</title>
</head>
<body style="background:#333;text-align:center;">
<!-- 1. The <iframe> (and video player) will replace this <div> tag. -->
<div id="player" style="width: 1170px;height: 585px;margin:20px auto;"></div>
<script>// 2. This code loads the IFrame Player API code asynchronously.
@jlyon
jlyon / CalypsoEndpoints.md
Created December 2, 2015 01:20
WP Calypso API endpoints used
# Auth
https://public-api.wordpress.com/rest/v1.1/me?http_envelope=1&meta=flags
https://public-api.wordpress.com/rest/v1.1/me/settings?http_envelope=1

# User - login
https://public-api.wordpress.com/rest/v1.1/me/sites?http_envelope=1&site_visibility=all
https://public-api.wordpress.com/rest/v1.1/products?http_envelope=1&locale=en
https://public-api.wordpress.com/rest/v1.1/sites/103415197/users?http_envelope=1&number=50&offset=0&siteId=103415197&order=ASC&order_by=display_name
@jlyon
jlyon / gist:f05b3c082ab65fdf5f3c
Created December 1, 2015 15:31
Passport node.js notes
https://github.com/jaredhanson/passport-oauth2
@jlyon
jlyon / kontena.md
Last active December 1, 2015 07:07
Notes for getting started with Kontena
@jlyon
jlyon / genymotion-ionic.md
Last active November 18, 2015 08:09
Genymotion Ubuntu 14.04 Ionic

in ~/.bashrc

export PATH=${PATH}:/home/jeff/Android/Sdk/platform-tools:/home/jeff/Android/Sdk/tools

Start genymotion

/usr/share/genymotion/genymotion

Use Genymotion Android Tools (settings > ADB in Genymotion)