This file contains 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
struct message { | |
unsigned foo; | |
unsigned bar; | |
unsigned LEN; | |
unsigned baz; | |
unsigned fizz; | |
/* byte[] payload <-- LEN bytes long */ | |
}; |
This file contains 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
byte field | |
offset | |
0 +---------+ | |
|command | | |
4 +---------+ | |
|arg a | | |
8 +---------+ | |
|arg b | | |
12 +---------+ |
This file contains 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
$ laser -t rex | |
.-=-==--==--. | |
..-==" ,'o`) `. | |
,' `"' \ | |
: ( `.__...._ | |
| ) / `-=-. | |
: ,vv.-._ / / `---==-._ | |
\/\/\/VV ///88`;' / `. |
This file contains 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
! aaaaaaaaaaaaaaaa | |
"""""""" # cccccc | |
cc ddddddddd %% ee | |
eeeeeeeeeeeeeeeeee | |
eeee & fffffffff ' | |
gg (((((((((((((( | |
((((((((((( H hhh | |
)))))))))))))))))) | |
))))))) I iiiiiiii | |
iiii +++ , lllllll |
This file contains 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
#include <stdlib.h> | |
#include <stdio.h> | |
// How it should look like: | |
/** | |
class Point { | |
int x,y; | |
new(int, int) {...}; | |
void moveBy(Point) {...}; |
This file contains 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
/* $Id: parser.y,v 1.4 1997/11/23 12:52:22 sandro Exp $ */ | |
/* | |
* Copyright (c) 1997 Sandro Sigala <ssigala@globalnet.it>. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright |
This file contains 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
(defonce state (atom {:items [{:name "apple" :tasty true} | |
{:name "shoe" :tasty false} | |
{:name "glue" :tasty true}]})) | |
(defn toggle-tasty [name] | |
;... swap! :items | |
) | |
(defn item [i] | |
[:div [:span (:name i)] |
This file contains 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
/* category.js */ | |
var mongoose = require('mongoose') | |
, Schema = mongoose.Schema | |
, ObjectId = Schema.ObjectId; | |
var Category = new Schema({ | |
... | |
}); | |
Category.statics.foobar = function() { |
This file contains 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
"Ostatni Deadline" (w oparciu o "Ostatnia Nocka" by Maciej Maleńczuk & Yugopolis) | |
słowa: Marcin Gasperowicz | |
Boli mnie głowa a nie mogę spać, a GC | |
chociaż dokoła wszyscy już posnęli, F E | |
nie mogę siedzieć a nie mogę wstać, | |
mija ostatni termin beznadziei. | |
ref.: | |
Tylko kod, kod, kod, płoną światła lamp, |
This file contains 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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var id; | |
var Robot = function(robot) { | |
id = this.id; | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; |