Skip to content

Instantly share code, notes, and snippets.

View rlorca's full-sized avatar

Rodrigo Lorca rlorca

  • Lausanne, Switzerland
View GitHub Profile
@rlorca
rlorca / Protocol
Last active August 29, 2015 13:56
* General form
Command (parameters*)\n
* General errors
ERR_INVALID_SEQUENCE 2
ERR_INVALID_COMMAND 4
* Commands
JOIN
Resp: OK [GO | WAIT] GAME_NUMBER
@rlorca
rlorca / first.hs
Created August 22, 2014 14:51
Hello world in haskell
add a b = a + b
turboDrop n xs = if n <= 0 || null xs
then xs
else turboDrop (n -1)(tail xs)
fu = print "abc"
data Phones = Iphone | Htc_one