Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am t1b0 on github.
  • I am p4r0 (https://keybase.io/p4r0) on keybase.
  • I have a public key ASAJ2GlLxQp6Fz00B4WoZqAF89oACthzs4owgmmZ1drP1wo

To claim this, I am signing this object:

var argv = require('optimist').argv,
fs = require('fs'),
path = require('path'),
byline = require('byline');
var p = path.resolve(argv.f);
@T1B0
T1B0 / gist:c4cbd9e931becba7a58f
Last active August 29, 2015 14:03
calendar design
{
"_id": {
"$oid": "53ce8e839ec2cbbdc40c4e1b"
},
"id": "cal_001",
"designName": "A3 fancy cal fu",
"paging": {
"min": 13,
"max": 13
},
@T1B0
T1B0 / gist:8020388
Created December 18, 2013 10:46
switch from node-style to jquery-style with high-order function
function node2JQuery(fn) {
return function() {
/** assume success/error are the last 2 params */
var argz = Array.prototype.slice.call(arguments),
error = argz.pop(),
success = argz.pop();
argz.push(function(err){
if(err) error(err);
else success.apply(this, [null].concat( Array.prototype.slice.call(arguments, 1)));
@T1B0
T1B0 / robot.js
Created December 3, 2012 13:10
6po
function Robot(robot) {
robot.clone();
}
// well, we need to do something...
// whenever our robot is idle, this method gets called.
Robot.prototype.onIdle = function(ev) {
var robot;
commit a3b5909c462bfcc89f80d48d6e866143a6c68710
Author:
Date: Wed Jun 6 17:39:41 2012 +0200
refactored index module, added public/private header module ~> we can now lo
diff --git a/public/css/styles.css b/public/css/styles.css
index 597d7e1..5d94762 100644
--- a/public/css/styles.css
+++ b/public/css/styles.css