Skip to content

Instantly share code, notes, and snippets.

View automata's full-sized avatar

Vilson Vieira automata

View GitHub Profile
(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
@automata
automata / Makefile.patch
Created August 13, 2015 11:45
Patch to ttymidi
--- Makefile 2015-08-13 08:41:02.110102909 -0300
+++ ../Makefile 2015-08-13 08:24:39.326062165 -0300
@@ -1,5 +1,5 @@
all:
- gcc src/ttymidi.c -o ttymidi -lasound
+ gcc src/ttymidi.c -o ttymidi -lasound -lpthread
clean:
rm ttymidi
install: