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
[Tue, 04 Oct 2011 21:49:42 GMT] [info] [<0.2327.0>] 127.0.0.1 - - 'POST' /_replicate 400 | |
[Tue, 04 Oct 2011 21:49:57 GMT] [info] [<0.2471.0>] 127.0.0.1 - - 'HEAD' /log/ 200 | |
[Tue, 04 Oct 2011 21:49:58 GMT] [info] [<0.2470.0>] 127.0.0.1 - - 'GET' /log/ 200 | |
[Tue, 04 Oct 2011 21:49:59 GMT] [info] [<0.2481.0>] 127.0.0.1 - - 'GET' /log/_local/8363003659586c06c5b61184bb4cca31 404 | |
[Tue, 04 Oct 2011 21:49:59 GMT] [info] [<0.2487.0>] 127.0.0.1 - - 'GET' /log/_local/747016ec6f08088947198794c2837320 404 | |
[Tue, 04 Oct 2011 21:50:00 GMT] [info] [<0.2493.0>] 127.0.0.1 - - 'GET' /log/_changes?style=all_docs&heartbeat=10000&since=0&feed=normal 200 | |
[Tue, 04 Oct 2011 21:50:00 GMT] [info] [<0.2464.0>] starting new replication "8363003659586c06c5b61184bb4cca31" at <0.2482.0> | |
[Tue, 04 Oct 2011 21:50:01 GMT] [error] [<0.2522.0>] ** Generic server <0.2522.0> terminating | |
** Last message in was {'EXIT',<0.2523.0>,{target_error,<<"forbidden">>}} | |
** When Server state == {state,nil,nil,<0.2482.0>,false,0, |
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
# So, this version is not at all mine, it's one from @samuelkadolph. | |
# (Just for the record.) | |
class MyHash < Hash | |
def initialize(hash = {}) | |
super() | |
merge!(hash) if hash | |
end | |
def [](key) |
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
/home/lu/t/games/Aquaria | |
DSQ init | |
Mipmaps Enabled | |
DeveloperKeys Disabled | |
VoiceOvers Enabled | |
Init Graphics Library... | |
setting vsync: 1 | |
Video Driver Name [x11] | |
virtual(1067, 600) | |
virtual(1067, 600) |
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
[ 0.000000] Initializing cgroup subsys cpuset | |
[ 0.000000] Initializing cgroup subsys cpu | |
[ 0.000000] Linux version 3.2.0-rc5+ (lu@papill0n) (gcc version 4.6.2 20111125 (prerelease) (GCC) ) #4 SMP Wed Dec 21 15:30:57 CET 2011 | |
[ 0.000000] Command line: root=/dev/sda6 ro | |
[ 0.000000] Disabled fast string operations | |
[ 0.000000] BIOS-provided physical RAM map: | |
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) | |
[ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) | |
[ 0.000000] BIOS-e820: 00000000000e2000 - 0000000000100000 (reserved) | |
[ 0.000000] BIOS-e820: 0000000000100000 - 000000006ff90000 (usable) |
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
package jsomp.example.mvc; | |
/* | |
* A MVC example not using reflection in the controller. | |
*/ | |
interface Machine { | |
String getName(); | |
void setName(String name); |
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
package dp; | |
interface Tree<K> { | |
int leaves(); | |
} | |
class Branch<K> implements Tree<K> { | |
final Tree<K> left, right; | |
Branch(Tree<K> left, Tree<K> right) { |
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
class Vector | |
constructor: (p1, p2) -> | |
console.log "Vector: Warning", p1, p2 unless p1? and p2? | |
@x = p2.x - p1.x | |
@y = p2.y - p1.y | |
@random: (p1 = { x: 0, y: 0}, p2 = { x: window.innerWidth * 0.01, y: window.innerHeight * 0.01}) -> | |
flippy = (n) -> if Math.random() < 0.5 then -1 else 1 | |
new Vector p1, { x: flippy(p2.x), y: flippy(p2.y)} |
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
class ThreadBleh extends Thread { | |
private boolean areWePlayingNow = false; | |
public void run() { | |
while(true) { | |
if(areWePlayingNow) { | |
// do something | |
} else { | |
// don't do something ;) | |
} |
OlderNewer