This file contains hidden or 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
// array | |
var a = [ | |
"first","second","third" | |
]; | |
var o = { | |
"first" : "uno", "second" : "doce","third" : "trace" | |
}; |
This file contains hidden or 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
{ | |
"name" : "hello world", | |
"ports" : { | |
"in" : [], | |
"out" : [] | |
}, | |
"nodes" : { | |
"1" : { | |
"name" : "string", | |
"meta" : { |
This file contains hidden or 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
// performance (simplified) | |
{ | |
name : "hello" | |
nodes : [ | |
{ | |
name : "constant" | |
value : "hello" | |
/* | |
in code: | |
ports: { |
This file contains hidden or 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
#!/bin/sh | |
PREFIX=$HOME/wayland-install | |
aptitude update | |
aptitude install build-essential autoconf automake libtool libpthread-stubs0-dev git-core libx11-dev x11proto-dri2-dev x11proto-gl-dev libxext-dev libxxf86vm-dev libxdamage-dev libxfixes-dev libexpat1-dev libxt-dev libxi-dev libxmu-dev libudev-dev libgl1-mesa-dev libx11-xcb-dev libxcb-render0-dev libpng-dev libpixman-1-dev python libffi-dev libgdk-pixbuf-dev libglib2.0-dev libpoppler-glib-dev | |
aptitude build-dep mesa | |
wget http://cgit.freedesktop.org/mesa/drm/snapshot/drm-2.4.15.tar.gz | |
tar -xzf drm-2.4.15.tar.gz |
This file contains hidden or 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
In file included from ../binding.h:4, | |
from ../binding.cc:1: | |
/Users/tmpvar/work/javascript/node-avro/build/default/include/avro.h:93: error: conflicting declaration ‘typedef struct avro_reader_t* avro_reader_t’ | |
/Users/tmpvar/work/javascript/node-avro/build/default/include/avro.h:93: error: ‘struct avro_reader_t’ has a previous declaration as ‘struct avro_reader_t’ | |
/Users/tmpvar/work/javascript/node-avro/build/default/include/avro.h:94: error: conflicting declaration ‘typedef struct avro_writer_t* avro_writer_t’ | |
/Users/tmpvar/work/javascript/node-avro/build/default/include/avro.h:94: error: ‘struct avro_writer_t’ has a previous declaration as ‘struct avro_writer_t’ | |
/Users/tmpvar/work/javascript/node-avro/build/default/include/avro.h:131: error: conflicting declaration ‘typedef struct avro_schema_error_t* avro_schema_error_t’ | |
/Users/tmpvar/work/javascript/node-avro/build/default/include/avro.h:131: error: ‘struct avro_schema_error_t’ has a previous declaration as ‘struct avro_schema_error_t’ | |
/Us |
This file contains hidden or 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
console.clear(); | |
var node = { | |
first: function() { | |
console.log(this.hello); | |
this.hello++; | |
}, | |
second : function() { | |
console.log(this.hello); | |
this.hello+=100; |
This file contains hidden or 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 | |
PARALLEL_CONNECTS = 10, | |
http = require('http'), | |
sys = require('sys'), | |
connectionCount = 0, | |
messageCount = 0; | |
lastMessages = 0; | |
function addClient() { |
This file contains hidden or 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
import Options | |
from os import popen, unlink, symlink, getcwd | |
from os import name as platform | |
from os.path import exists | |
import sys | |
srcdir = "." | |
blddir = "build" | |
VERSION = "0.0.1" |
This file contains hidden or 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
tmpmac:tmp tmpvar$ mkdir test | |
tmpmac:tmp tmpvar$ cd test | |
tmpmac:test tmpvar$ git init | |
Initialized empty Git repository in /private/tmp/test/.git/ | |
tmpmac:test tmpvar$ echo "readme" > readme.txt | |
tmpmac:test tmpvar$ echo "some initial development" > dev.txt | |
tmpmac:test tmpvar$ git add . | |
tmpmac:test tmpvar$ git commit -am "initial development" | |
[master (root-commit) 70385a6] initial development | |
2 files changed, 2 insertions(+), 0 deletions(-) |
This file contains hidden or 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
document.body.innerHTML = '<html><body><canvas id="canvas" height="600" width="600"></canvas></body></html>'; | |
var canvas = document.getElementById("canvas"); | |
var ctx = canvas.getContext("2d"); | |
var background = "#2A3335"; | |
ctx.fillStyle = background; | |
ctx.fillRect (0, 0, 600, 600); | |
ctx.textBaseline = "top"; |