Skip to content

Instantly share code, notes, and snippets.

// Any colors for output
var colors = require('colors');
// For json sockets
var jot = require('json-over-tcp');
// Setup socket.io
var app = require('http').createServer();
var io = require('socket.io').listen(app);
@belak
belak / jot.go
Last active December 16, 2015 06:49
package main
// NOTE: This implements the following protocol:
// https://github.com/turn/json-over-tcp
// This was done for chunking reasons
// Darn you TCP!
import (
"encoding/binary"
"encoding/json"
@belak
belak / PKGBUILD
Created May 22, 2012 13:26
broadcom-wl
# Contributor: Austin ( doorknob60 [at] gmail [dot] com )
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
pkgname=broadcom-wl
pkgver=5.100.82.112
pkgrel=3
pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
url='http://www.broadcom.com/support/802.11/linux_sta.php'
arch=('i686' 'x86_64')
license=('custom')
@Override
public void draw() {
this.sprite.getTexture().bind();
//double w = this.width/32;
//double h = this.height/32; // we should do the same for height.
double row = this.sprite.getsY();
double col = this.sprite.getsX();