This file contains 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
noflo = require 'noflo' | |
class Measure extends noflo.AsyncComponent | |
description: 'Load image from URL and get dimensions' | |
icon: 'picture-o' | |
constructor: -> | |
@inPorts = | |
url: new noflo.Port 'string' | |
@outPorts = | |
dimensions: new noflo.Port 'array' |
This file contains 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
var noflo = require('noflo'); | |
exports.getComponent = function () { | |
var c = new noflo.Component(); | |
c.icon = "circle-o" | |
c.inPorts.add('faces'); | |
c.outPorts.add('circles'); | |
c.outPorts.add('dimensions'); |
This file contains 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
{ | |
"properties": { | |
"name": "mousebez", | |
"id": "af975fd9fd7408002676", | |
"environment": { | |
"type": "noflo-browser", | |
"content": "" | |
} | |
}, | |
"inports": {}, |
This file contains 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
{ | |
"properties": { | |
"name": "makepath", | |
"id": "gd8s5", | |
"environment": { | |
"type": "noflo-browser", | |
"content": "<canvas id=\"canvas\" width=\"200\" height=\"200\"></canvas>" | |
} | |
}, | |
"inports": {}, |
This file contains 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
# Canvas stuff | |
canvas = document.getElementById 'fireworks' | |
context = canvas.getContext '2d' | |
width = canvas.width = window.innerWidth | |
w2 = Math.floor width/2 | |
height = canvas.height = window.innerHeight | |
h2 = Math.floor height/2 | |
TAU = Math.PI*2 |
This file contains 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
{ | |
"properties": { | |
"name": "geo", | |
"environment": { | |
"type": "noflo-browser" | |
} | |
}, | |
"inports": {}, | |
"outports": {}, | |
"groups": [], |
This file contains 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
{ | |
"properties": { | |
"name": "yin-yang", | |
"environment": { | |
"type": "noflo-browser", | |
"content": "<style>body{background-color:grey;}</style>\nradius <input id=\"radius\" type=\"range\" min=\"1\" max=\"150\" value=\"150\"></input><br>\nhole <input id=\"hole\" type=\"range\" min=\"0\" max=\"1\" step=\"0.001\" value=\"0.6\"></input><br>" | |
}, | |
"id": "a1096a406131e109f836" | |
}, | |
"inports": {}, |
This file contains 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
{ | |
"info": { | |
"title": "cam to gif station", | |
"author": "forresto", | |
"description": "webcam to animated gif", | |
"url": "kiosk", | |
"parents": [ | |
"https://gist.github.com/ea32c33a741119e82c35" | |
] | |
}, |
This file contains 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
{ | |
"properties": { | |
"name": "ccv-test", | |
"environment": { | |
"type": "noflo-browser", | |
"content": "" | |
} | |
}, | |
"inports": {}, | |
"outports": {}, |
This file contains 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
b = require('browserify'); | |
console.log(b); |
OlderNewer