This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"awayIndicator": "#e0b333", | |
"buttonBg": "#859900", | |
"buttonColor": "#586e75", | |
"centerChannelBg": "#fdf6e3", | |
"centerChannelColor": "#839496", | |
"codeTheme": "solarized-light", | |
"linkColor": "#268bd2", | |
"mentionBj": "#dc322f", | |
"mentionColor": "#ffffff", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
usage(){ | |
echo "Error $errcode $errorcode at line ${BASH_LINENO[0]} while executing: $BASH_COMMAND" | |
exit $errorcode | |
} | |
trap usage ERR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# chat server using multicast | |
# python fork of the original ruby implementation | |
# http://tx.pignata.com/2012/11/multicast-in-ruby-building-a-peer-to-peer-chat-system.html | |
# receiver.py | |
# usage : $ python receiver.py # wait for messages to come in | |
import socket | |
import struct | |
multicast_addr = '224.0.0.1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var keyboard = function(window) { | |
var keyboard = window.keyboard || {}; | |
if (!('isPressed' in keyboard)) { | |
keyboard._keys = {}; | |
var handler = function(e, flag) { | |
var key = String.fromCharCode(e.which).toLowerCase(); | |
keyboard._keys[key] = flag; |