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 | |
| $this->error = false; | |
| return (!$this->error) ? true : false; |
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'); | |
| require_once('./PHP_Json_RPC_2.0/vendor/autoload.php'); | |
| use Timmachine\PhpJsonRpc\Router; | |
| use Timmachine\PhpJsonRpc\Listener; |
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
| { | |
| "yellorite": { | |
| "template": "uniform", | |
| "block": { | |
| "name": "BigReactors:Yelloriteore", | |
| "metadata": 0 | |
| }, | |
| "clusterSize": 20, |
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
| Add.on('click',function(){ | |
| elementID = "somerandom string"; | |
| var element ="<div>some html or template</div>"; | |
| element.on('search',function(){ | |
| var searchTerms = ''; |
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
| $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 = |
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
| --- | |
| 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: |
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 | |
| // ... | |
| public function getAvatar( $pid ) | |
| { | |
| $userData = Usermeta::where('patientId', $pid)->take(1)->remember(5); | |
| if($userData->count() == 0){ | |
| $this->setRandomAvatar($pid); | |
| $this->getAvatar($pid); | |
| } |
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
| <form action='submit.php' method="post"> | |
| <input type="text" name="email"/> | |
| <textarea name="emailbody"></textarea> | |
| <input type="submit" value="submit" /> | |
| </form> |
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
| <!-- 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 --> |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |