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 Eieruhr | |
* | |
* Eigener Thread. Bekommt als Parameter Name und dauer als String. | |
* Gibt nach Ablaufen der Zeit aus, dass die Zutat fertig ist. | |
*/ | |
class Eieruhr extends Thread | |
{ | |
String time; | |
long startTimeMillis; |
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
<?php | |
class My_Validate_PostCode extends Zend_Validate_Abstract | |
{ | |
public function isValid($value, $context = null) | |
{ | |
$value = (string) $value; | |
if(!(is_array($context) && isset($context['country']))) | |
{ |
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 Foo | |
{ | |
private int x; | |
public Foo(int x) | |
{ | |
this.x = x; | |
} | |
public int add(Foo a) |
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
<?php | |
class Twitter_StreamingClient extends Twitter_Phirehose | |
{ | |
const URL_BASE = 'http://stream.twitter.com/1/statuses/'; | |
const METHOD_USER = 'user'; | |
const CONNECT_OAUTH = 'oauth'; | |
const CONNECT_BASIC = 'basic'; | |
protected $status_length_base = 10; // for some reason, the userstream uses hexadecimal status lengths |
NewerOlder