Skip to content

Instantly share code, notes, and snippets.

View forresto's full-sized avatar

Forrest O. forresto

View GitHub Profile
c = document.querySelector("canvas")
w = c.width
h = c.height
c = c.getContext("2d")
c.fillStyle = "rgba(255,255,255,0.5)"
c.strokeStyle = "black"
nodes = []
nodeCount = 7
@forresto
forresto / noflo.json
Last active December 25, 2015 00:49
the-grid/the-graph edge algo test
{
"properties": {
"environment": {
"runtime": "html",
"content": "",
"width": 300,
"height": 300,
"src": "./preview/iframe.html"
},
"name": "NoFlo"
@forresto
forresto / noflo.json
Last active December 23, 2015 21:49 — forked from bergie/noflo.json
small fixes for the clock
{
"properties": {
"environment": {
"runtime": "html",
"content": "<div class='area' title='.area'><img id='clock' src='http://i.meemoo.me/v1/in/GJPUFPc8ThuRp9itdXC9_clock-face.png' style='position:absolute; width:300px; height:300px; top:0; left:0;' /><img id='hours' src='http://i.meemoo.me/v1/in/fRL213GT1uCRltIqXkK2_clock-hours.png' style='position:absolute; top:50px; left:130px; height:200px;' /><img id='minutes' src='http://i.meemoo.me/v1/in/23DZFKYoRTOIAjPA7sed_clock-minutes.png' style='position:absolute; top:0; left:140px; height:300px;' /><img id='seconds' src='http://i.meemoo.me/v1/in/VU2HqPmuTqucRpnUGGBj_clock-seconds.png' style='position:absolute; top:0; left:145px; height:300px;' /></div>",
"width": 300,
"height": 300,
"src": "./preview/iframe.html"
},
"name": "NoFlo"
@forresto
forresto / september-app.json
Created September 22, 2013 07:14
meemoo app: september
{
"info": {
"author": "meemoo",
"title": "earth wind fire september effect",
"description": "lumakey to video feedback loop. just add funk.",
"parents": [],
"url": "september-app"
},
"nodes": [
{
@forresto
forresto / gist:6557343
Created September 13, 2013 23:28
meemoo app: test equation in port
{
"info": {
"author": "meemoo",
"title": "Untitled",
"description": "Meemoo app description",
"parents": [],
"url": "test-equation"
},
"nodes": [
{
@forresto
forresto / gist:6557342
Created September 13, 2013 23:28
meemoo app: test equation in port
{
"info": {
"author": "meemoo",
"title": "Untitled",
"description": "Meemoo app description",
"parents": [],
"url": "test-equation"
},
"nodes": [
{
@forresto
forresto / gist:6557339
Last active December 23, 2015 00:59
meemoo app: test equation in port
{
"info": {
"author": "meemoo",
"title": "equation evaluation in port",
"description": "Meemoo app description",
"parents": [],
"url": "test-equation"
},
"nodes": [
{
@forresto
forresto / test-mic.json
Last active December 22, 2015 23:09
meemoo: mic test
{
"info": {
"title": "getusermedia mic + web audio api analyzer",
"author": "forresto",
"description": "webcam to animated gif",
"url": "test-mic",
"parents": [
"https://gist.github.com/6544581"
]
},
@forresto
forresto / index.html
Last active December 20, 2015 07:59
reduced case: pan scale zoom with multitouch (webkit only, css zoom, fake multitouch with shift+drag)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<title>pan scale zoom with multitouch</title>
@forresto
forresto / rotoscope-trace-print.json
Last active December 20, 2015 01:39
meemoo app: rotoscope tracing image maker
{
"info": {
"author": "meemoo",
"title": "Untitled",
"description": "made for https://forresto.makes.org/thimble/moving-img-workshop-day-4-rotoscope ... print the grid out then trace it!",
"parents": [
"https://gist.github.com/6050932"
],
"url": "rotoscope-trace-print"
},