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
Testing gist |
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 | |
class Test { | |
function call ($method_name) { | |
// echo $method_name; | |
$this->{"call_".$method_name}(); |
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
import tango.io.Console; | |
import tango.util.container.HashMap; | |
import Integer = tango.text.convert.Integer; | |
void main() | |
{ | |
Cout ("How big is that dong bro?").newline; | |
Cout ("Lets get some length bro, in inches please: "); | |
char[] length = Cin.get; |
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 | |
$find_me = 'fds'; | |
$s1 = 'asd fds gfd hg'; | |
$s2 = 'yj5 werg 3g rth'; | |
$a1 = explode(' ', $s1); | |
$a2 = explode(' ', $s2); | |
$token = array_search($find_me, $a1); |
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 | |
$xml_source = <<<EOF | |
<BackupSets> | |
<BackupSet ID="1267529212700" > | |
<BackupJob ID="2010-03-02-12-27-18" /> | |
<BackupJob ID="2010-03-02-12-29-00" /> | |
<BackupJob ID="2010-03-11-16-08-40" /> | |
<BackupJob ID="2010-03-18-16-03-59" /> | |
<BackupJob ID="2010-03-25-10-40-47" /> |
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 | |
$a = (object) array( | |
"name" => "Brandon", | |
"age" => 29, | |
); | |
echo $a->name; | |
# ------ |
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
var details = document.getElementById("submission-details"); | |
pureForm().addForm("details_form") | |
.addField("first_name", {type: "string", name: "First Name", validators: { | |
"min": {"min": 3, "error": "%field_name% must be at least %min% characters long."}, | |
"max": {"max": 30, "error": "%field_name% must be less than %max% characters long."} | |
}, | |
onValid: function (field_value) { | |
details.innerHTML += "<li>Sweet name: " + field_value + "</li>"; | |
} |
NewerOlder