Skip to content

Instantly share code, notes, and snippets.

fantasyni fantasyni

Block or report user

Report or block fantasyni

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fantasyni
fantasyni / car.js
Last active Aug 29, 2015
bearcat car.js example
View car.js
var Car = function() {
this.$id = "car";
this.$wheel = null;
this.$engine = null;
}
Car.prototype.run = function() {
this.$wheel.run();
this.$engine.run();
console.log('run car...');
View fork.js
var fork = require('child_process').fork;
var spawn = require('child_process').spawn;
for (var i = 0; i < 5; i++) {
fork("watch.js");
// var ls = spawn("node", ["watch.js"]);
// ls.stdout.on('data', function(data) {
// process.stdout.write(data.toString());
// });
@fantasyni
fantasyni / gist:4441938
Created Jan 3, 2013
uvbook demo codes complie makefile in ubuntu 10.10
View gist:4441938
examples=\
helloworld\
idle-basic\
uvcat\
uvtee\
onchange\
thread-create\
queue-work\
progress\
tcp-echo-server\
You can’t perform that action at this time.