Skip to content

Instantly share code, notes, and snippets.

View automata's full-sized avatar

Vilson Vieira automata

View GitHub Profile
[{"id":"c64ac187-d0f7-447c-a553-82ddc8d0ee66","item":"a21d9980-e90d-4847-9468-fdee96410be2","type":"article","html":"<article><h1>&apos;Light field&apos; camera maker Lytro announces professional VR video rig</h1><p>Camera maker Lytro drew our attention three years ago with what it called &quot;light field&quot; photography. Instead of focusing at a specific depth, its camera would capture everything in range of its finder, so you could do things like pick a focus after taking the picture.</p><img src=\"https://cdn2.vox-cdn.com/thumbor/coa6r2TY3lum-A4sKovYI9akKr0=/cdn0.vox-cdn.com/uploads/chorus_asset/file/4232179/Lytro_Immerge_Coast.0.jpg\"></article>","score":0,"created_at":null,"updated_at":null,"metadata":{"datePublished":null,"caption":"Camera maker Lytro drew our attention three years ago with what it called \"light field\" photography. Instead of focusing at a specific depth, its camera would capture everything in range of its finder, so you could do things like pick a focus after taking the picture.",
(node) warning: possible EventEmitter memory leak detected. 11 removeInitial listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at Graph.addListener (events.js:239:17)
at Network.subscribeGraph (/home/vilson/src/the-grid/caliper/node_modules/noflo/lib/Network.js:347:25)
at /home/vilson/src/the-grid/caliper/node_modules/noflo/lib/Network.js:220:17
at /home/vilson/src/the-grid/caliper/node_modules/noflo/lib/Network.js:213:22
at Network.addDefaults (/home/vilson/src/the-grid/caliper/node_modules/noflo/lib/Network.js:589:16)
at /home/vilson/src/the-grid/caliper/node_modules/noflo/lib/Network.js:205:39
at /home/vilson/src/the-grid/caliper/node_modules/noflo/lib/Network.js:213:22
at Network.addDefaults (/home/vilson/src/the-grid/caliper/node_modules/noflo/lib/Network.js:589:16)
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 5000, host: 5000
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.synced_folder "vagrant", "/vagrant", disabled: true
config.vm.synced_folder "src", "/home/vagrant/src", disabled: false
config.vm.provider "virtualbox" do |vb|
sharp.cache(true):
{ rss: 140107776, heapTotal: 107423328, heapUsed: 77185488 }
{ rss: 1835532288, heapTotal: 108443232, heapUsed: 77948600 }
sharp.cache(false):
{ rss: 146997248, heapTotal: 106391392, heapUsed: 76500328 }
{ rss: 150020096, heapTotal: 106391392, heapUsed: 77437088 }
Resident memory while caching (1835 MB) is around 10x more when
caching is disabled (150 MB).
Using worker: worker-linux-docker-80060c04.prod.travis-ci.org:travis-linux-1
Build system information
Build language: node_js
Build group: stable
Build dist: precise
Build image provisioning date and time
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu
noflo = require 'noflo'
unless noflo.isBrowser()
chai = require 'chai' unless chai
{%= component_name %} = require '../components/{%= component_name %}.coffee'
baseDir = path.resolve __dirname, '../'
testutils = require './testutils'
else
{%= component_name %} = require '{%= name %}/components/{%= component_name %}.js'
describe '{%= component_name %} component', ->
@automata
automata / test-rotate-on-center.c
Created September 29, 2015 02:13
Test rotate-on-center.c op for GEGL
#include <gegl.h>
#include <gegl/gegl-matrix.h>
#include <math.h>
static void
generate_matrix (GeglMatrix3 *matrix,
gdouble degrees,
gdouble x,
gdouble y,
gdouble width,
vilson@macbook:~/repos/imgflo/dependencies/gegl$ diff ~/src/automata/gegl/operations/transform/transform-core.c operations/transform/transform-core.c
31c31
<
---
> #include <stdio.h>
334,335c334,335
< output->x = (gint) floor ((double) min_x);
< output->y = (gint) floor ((double) min_y);
---
> output->x = (gint) ceil ((double) min_x);
@automata
automata / load-rotate-crop-save.c
Created September 25, 2015 20:38
GEGL code to load, rotate, crop and save an image. Use: ./foo in.png out.png. WIP!
#include <gegl.h>
#include <glib/gprintf.h>
gint
main (gint argc,
gchar **argv)
{
GeglNode *gegl,
*save,
#include <MIDI.h>
/*
This example is a modified version of Basic I/O MIDI tutorial
by Franky. It tries to demonstrate how to use Arduino MIDI
library together with ttyMIDI. You will need to install
Arduino MIDI library for this to work:
http://www.arduino.cc/playground/Main/MIDILibrary
All example patches shipped with the Arduino MIDI library