Skip to content

Instantly share code, notes, and snippets.

View forresto's full-sized avatar

Forrest O. forresto

View GitHub Profile
@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 / 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"
]
@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"
]
},
@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 / 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);
@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);
});
@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);
};
@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
@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