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
/* | |
Hercules is a CPE simulator built by Luca Cervasio <[email protected]> | |
within mosesacs project (see http://mosesacs.org, [email protected]) | |
*/ | |
import java.util.concurrent.ArrayBlockingQueue | |
import java.nio.channels.Selector | |
import java.nio.channels.SelectionKey | |
import java.nio.channels.SocketChannel | |
import java.nio.ByteBuffer |
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
/* | |
* | |
* Hercules v0.2 | |
* Copyright (C) 2010 Luca Cervasio | |
* Created by Luca Cervasio <[email protected]> | |
* All rights reserved (C) 2010 Luca Cervasio | |
* You're not allowed to copy or redistribute this software without the author's consent | |
* | |
*/ |
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
#!/usr/bin/env ruby | |
a = { | |
'uno.due.tre.otto' => 2, | |
'uno.due.tre.sei' => 5, | |
'uno.due.quattro' => 'ciao', | |
'uno.sette.cinque' => 'true', | |
} | |
mib = {'uno' => {}} |
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
#! /usr/bin/python | |
a = [ | |
'uno.due', | |
'uno.tre', | |
'uno.due.quattro' | |
] | |
root = {'uno': {}} |
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
<?php | |
error_reporting(E_ALL); | |
ini_set("display_errors", 1); | |
class tree_item { | |
public $title = ''; | |
public $children = array(); | |
public function &has_child($title) { |
NewerOlder