Skip to content

Instantly share code, notes, and snippets.

Avatar

Łukasz Wieczorek hilukasz

View GitHub Profile
View d3.js
var colorDepth = ["red", "green", "blue"];
node.append("circle")
.attr("r", function (d, idx) { return 6 / d.depth; })
.attr( "class", colorDepth[function (d, idx) { return d.depth }]);
View class.cpp
#include "motionTracker.h"
MotionTracker::MotionTracker(){
debugIsOn = false;
closestSensorIndex = 0;
}
void MotionTracker::setDebugOn(){
debugIsOn = true;
View app.js
////////////////
// REQUIRES
////////////////
var Campfire = require("../lib/campfire").Campfire,
express = require("express"),
app = require('express')(),
server = require('http').createServer(app),
io = require('socket.io').listen(server);
View app.js
////////////////
// REQUIRES
////////////////
var Campfire = require("../lib/campfire").Campfire;
var express = require('express'),
app = express(),
server = require('http').createServer(app),
io = require('socket.io').listen(server);
View app.js
var Campfire = require("../lib/campfire").Campfire,
express = require("express"),
app = require('express')(),
server = require('http').createServer(app),
io = require('socket.io').listen(server);
server.listen(1337);
app.set('views', __dirname + '/tpl');
app.set('view engine', "jade");
View test.js
process.on('uncaughtException', function (err){
robot.logger.error;
err.toString();
});
View app.js
var Campfire = require("../lib/campfire").Campfire,
express = require("express"),
app = require('express')(),
server = require('http').createServer(app),
io = require('socket.io').listen(server);
server.listen(1337);
app.set('views', __dirname + '/tpl');
app.set('view engine', "jade");
View myobject.js
var myObject = {"name":"message","args":[{"message":"Lukasz,wfh"}]}
View app.js
var Campfire = require("../lib/campfire").Campfire;
var express = require("express");
var app = express();
var port = 3700;
app.set('views', __dirname + '/tpl');
app.set('view engine', "jade");
app.engine('jade', require('jade').__express);
app.use(express.static(__dirname + '/public'));
View gist:6034305
brew install mysql
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
Warning: Building source; cellar of mysql's bottle is /usr/local/Cellar
==> Downloading http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.10.tar.gz/from/http://cdn.mysql.com/
curl: (22) The requested URL returned error: 404
Error: Download failed: http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.10.tar.gz/from/http://cdn.mysql.com/