Skip to content

Instantly share code, notes, and snippets.

@tsikov
tsikov / gist:10830153
Created April 16, 2014 08:13
Сортиране на групи за приятелство по брой депутати.
var Crawler = require("crawler").Crawler;
var cheerio = require("cheerio");
var c = new Crawler({
"callback": function(error, result) {
var fg = [];
$ = cheerio.load(result.body);
$("ul.DataBlock").find('li').each(function(idx, el) {
var ob = {
@tsikov
tsikov / client.js
Created September 11, 2012 09:56
Ball Passer
var socket = io.connect('http://localhost:8001'),
only = false,
timer_id = null,
Ball = {
img: new Image(),
x: 0,
direction : 1, // default direction - left to right
speed : 3,
width : 60 },
Canvas = {