Skip to content

Instantly share code, notes, and snippets.

View forresto's full-sized avatar

Forrest O. forresto

View GitHub Profile
@forresto
forresto / Redimensionator.cpp
Created March 1, 2011 20:05
Redimensionator (moved to a repository)
// This file has been moved to: https://github.com/sembiki/Redimensionator/blob/master/src/RedimensionatorApp.cpp
@nrabinowitz
nrabinowitz / quantize.js
Created July 25, 2011 17:19
Javascript module for color quantization, based on Leptonica
/*!
* quantize.js Copyright 2008 Nick Rabinowitz.
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
// fill out a couple protovis dependencies
/*!
* Block below copied from Protovis: http://mbostock.github.com/protovis/
* Copyright 2010 Stanford Visualization Group
* Licensed under the BSD License: http://www.opensource.org/licenses/bsd-license.php
@mnmly
mnmly / coffee-stained-paper.js
Created August 23, 2011 05:57 — forked from j4mie/example.html
A tiny shim for Paper.js/CoffeeScript prototyping
window.stainedPaper = function (func) {
var canvas = document.createElement('canvas');
document.body.appendChild(canvas);
paper.setup(canvas);
func.call(paper);
};
@strongwave
strongwave / getCurrentPosition_canvas.html
Created October 17, 2011 23:40
A Demo Drawing Google Map on Canvas Tag for HTML5
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>
jQuery(window).ready(function(){
g_initialize();
jQuery("#findLocationBtn").click(initiate_geolocation);
});
@automata
automata / gist:2728285
Created May 19, 2012 00:19
tutorial web audio api: tocando arquivo em tempo
// criamos um "contexto sonoro", objeto que permite acessar a placa de áudio
var context = new webkitAudioContext();
// carregaremos um buffer de áudio nessa variável
var som = null;
function carregaSom(url) {
// cria uma requisição assíncrona para carregar o arquivo de áudio de uma url
var request = new XMLHttpRequest();
request.open('GET', url, true);
@automata
automata / hackclock.json
Created May 21, 2012 23:23
hackable clock 0.2
{
"info": {
"title": "hackable clock 0.2",
"author": "forresto, automata",
"description": "hackable clock for Mozilla summer code party 2012",
"url": "hackableclock",
"parents": [
"https://gist.github.com/2760122"
]
},
@automata
automata / hackclock.json
Created May 22, 2012 14:44
hackable clock 0.2b
{
"info": {
"title": "hackable clock 0.2b",
"author": "forresto, automata",
"description": "hackable clock for summer code party 2012",
"url": "hackableclock",
"parents": [
"https://gist.github.com/2760122"
]
},
@forresto
forresto / spirography2.json
Last active October 7, 2015 07:08
meemoo app: recursive spirography feedback thing (native)
{
"info": {
"title": "recursive spirograph thing",
"author": "forresto",
"description": "colored squares feeding back to oblivion",
"url": "spiro-native",
"parents": [
"https://gist.github.com/3122332",
"https://gist.github.com/3124854"
]
@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": [
{
@bergie
bergie / noflo.json
Last active December 23, 2015 08:29
NoFlo clock demo
{
"properties": {
"name": "Clock Example",
"environment": {
"type": "noflo-browser",
"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;' /><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
}
},