Skip to content

Instantly share code, notes, and snippets.

/Users/baguirre/.tmux.conf
# Make it use C-a, similar to screen..
unbind C-b
unbind l
set -g prefix C-a
bind-key C-a next-window
bind-key C-d previous-window
# Split windows
unbind %
unbind '"'
on path("a") do
on path("b") do
on path("c") do
on post do
res.write "c - POST"
end
on get do
res.write "c - GET"
end
*** smsc_at.c Thu Mar 24 21:14:49 2011
--- smsc_at_fixed.c Thu Mar 24 21:19:09 2011
***************
*** 904,910 ****
static int at2_read_delete_message(PrivAT2data* privdata, int message_number)
{
char cmd[20];
! int message_count = 0;
sprintf(cmd, "AT+CMGR=%d", message_number);
@elcuervo
elcuervo / gist:937198
Created April 22, 2011 17:42
Scrum Chuck
* Chuck Norris always starts his projects with a Roundhouse-Kickoff.
* Chuck Norris is ScrumMaster and ProductOwner - simultaneously.
* Chuck Norris always wins at Planning Poker.
* Chuck Norris does not estimate, he knows.
* Chuck Norris can do 6-month sprints.
* Chuck Norris does not move story cards, he moves the taskboard.
* When Chuck Norris says "done", believe me, it’s "done".
* Even Chuck Norris is not allowed to be late at the stand-up meeting. Now you tell him.
* Chuck Norris can do a thousand sit-ups during the stand-up meeting.
* Chuck Norris answers just two questions on the stand-up meeting. Chuck Norris does not know obstacles.
@elcuervo
elcuervo / babarasi.cpp
Created May 14, 2011 04:01
Babarasi Model implementation
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#define EXIT_SUCCESS 0
@elcuervo
elcuervo / gist:1395652
Created November 26, 2011 13:14 — forked from dcadenas/gist:1395643
Preguntas webrocket
Quien es tu cliente?
Desarrolladores
Cual es tu propuesta de valor?
Facilitar la comunicación browser-servidor en tiempo real
Ofrecer tecnologia para procesar datos en tiempo real y presentarlos al instante al usuario.
Cuales son tus fuentes de ingresos?
SaaS Software as a Service
require 'cuba'
require 'rack/async'
queue = Queue.new
class Async
def initialize(queue)
@queue = queue
end
var Picomachine = require('picomachine');
var WebSocket = require('websocket-client').WebSocket;
var WebRocket = function(key, options) {
this.key = key;
this.options = options || {};
this.connection = new WebRocket.Connection;
};
WebRocket.prototype = {
package main
import (
"bytes"
"log"
"crypto/rsa"
"crypto/dsa"
"io"
"crypto"
"errors"