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 | |
// P.D / TakesTheBiscuit proof of concept 9-2-2018 21:00 | |
// This small demo shows how you can send an input template | |
// .. back to an api client (for example) which can then be auto populated | |
Class micro_api { | |
public function getResponse($input_id) { | |
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
#include <Servo.h> | |
Servo myservo; // create servo object to control a servo | |
int pos = 0; // variable to store the servo position | |
String inputString = ""; // a String to hold incoming data |
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 | |
$addresses = explode('||',file_get_contents('https://ukpoliceimageappeal.co.uk/postcode/lookup?code=m146pb')); | |
if (count($addresses)) { | |
foreach ($addresses as $address) { | |
echo str_replace('//',', ',str_replace(' ','',$address)); | |
echo "<hr>"; | |
} | |
} | |
?> |
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
{ | |
"autoload": { | |
"classmap": [ | |
"database" | |
], | |
"psr-4": { | |
"App\\": "app/" | |
}, | |
"files": ["app/Libraries/metapack_client_v5.php"] |
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 | |
// just because this isn't wordpress.. | |
$dummy_post = array('title'=>'the post name', 'body'=>'some post content'); | |
$posts = array($dummy_post ,$dummy_post ,$dummy_post,$dummy_post,$dummy_post,$dummy_post ); | |
$track_count = 0; | |
$posts_output = []; | |
foreach ($posts as $index => $post) { | |
NewerOlder