Skip to content

Instantly share code, notes, and snippets.

View Tim-Machine's full-sized avatar

Tim Smith Tim-Machine

  • Cohezion.ai
  • Cary,NC
  • 07:54 (UTC -04:00)
View GitHub Profile
<?php
$this->error = false;
return (!$this->error) ? true : false;
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
require_once('./PHP_Json_RPC_2.0/vendor/autoload.php');
use Timmachine\PhpJsonRpc\Router;
use Timmachine\PhpJsonRpc\Listener;
{
"yellorite": {
"template": "uniform",
"block": {
"name": "BigReactors:Yelloriteore",
"metadata": 0
},
"clusterSize": 20,
Add.on('click',function(){
elementID = "somerandom string";
var element ="<div>some html or template</div>";
element.on('search',function(){
var searchTerms = '';
$teamname = $_POST['teamname']; // this really should be cleaned
$headcoach = $_POST['headcoach']; // clean this too
$pnumber = $_POST['pnumber']; // clean this too
$address = $_POST['address']; // clean this too
$acoach = $_POST['acoach']; // clean this too
$anumber = $_POST['anumber']; // clean this too
$aaddress = $_POST['aaddress']; // clean this too
$disclaimer = $_POST['disclaimer']; // clean this too
$body =
---
vagrantfile-local:
vm:
box: ubuntu-precise12042-x64-vbox43
box_url: 'http://box.puphpet.com/ubuntu-precise12042-x64-vbox43.box'
hostname: null
network:
private_network: 192.168.56.101
forwarded_port:
E9b3KT5qpFcW:
<?php
// ...
public function getAvatar( $pid )
{
$userData = Usermeta::where('patientId', $pid)->take(1)->remember(5);
if($userData->count() == 0){
$this->setRandomAvatar($pid);
$this->getAvatar($pid);
}
<form action='submit.php' method="post">
<input type="text" name="email"/>
<textarea name="emailbody"></textarea>
<input type="submit" value="submit" />
</form>
<!-- fires blog-entries event, limit is a param being passed on the even. All the template logica would be
handeled in the blog-entries handler.
-->
<div id="blog" data-simplex="blog-entries" data-limit="20">
<div class="entry">
<!-- append author name to end of string would return `Written by: Tim-Machine` -->
<div class="blog_author" data-var="author_name" data-placement="append">Written by: </div>
<!-- replace `date` with the correcly formatted dynamic date -->
@Tim-Machine
Tim-Machine / 0_reuse_code.js
Created November 7, 2013 13:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console