Skip to content

Instantly share code, notes, and snippets.

@elcuervo
elcuervo / gist:2430999
Created April 20, 2012 18:50
EM send data popen
IO.popen('./test') do |io|
begin
while line = io.readline do
send_data line
end
rescue EOFError => e
end
end
@elcuervo
elcuervo / guita
Created March 15, 2012 14:33 — forked from dcadenas/guita.rb
Script para ver el estado de una cuenta del banco Itaú Uruguay
#!/usr/local/bin/ruby
# encoding: UTF-8
require 'rubygems'
gem 'mechanize'
gem 'main'
gem 'highline'
gem 'money'
gem 'change_watcher'
@elcuervo
elcuervo / gist:1969242
Created March 4, 2012 00:13
Fix psych errors
# Fix Psych Warnings and failures
brew install libyaml
rvm reinstall ruby-1.9.2 --with-libyaml-dir=/usr/local
require 'cuba'
require 'rack/async'
queue = Queue.new
class Async
def initialize(queue)
@queue = queue
end
package main
import (
"bytes"
"log"
"crypto/rsa"
"crypto/dsa"
"io"
"crypto"
"errors"
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 = {
require 'cuba'
require 'rack/async'
queue = Queue.new
class Async
def initialize(queue)
@queue = queue
end
@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
@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: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.