Skip to content

Instantly share code, notes, and snippets.

View orther's full-sized avatar
🏠
Working from home

Brandon Orther orther

🏠
Working from home
View GitHub Profile
Testing gist
<?php
class Test {
function call ($method_name) {
// echo $method_name;
$this->{"call_".$method_name}();
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;
<?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);
<?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" />
<?php
$a = (object) array(
"name" => "Brandon",
"age" => 29,
);
echo $a->name;
# ------
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>";
}