I hereby claim:
- I am nhalstead on github.
- I am nhalstead (https://keybase.io/nhalstead) on keybase.
- I have a public key ASC4EOcVczfFT369kUqNixC9wA4XYOzgE_uK8k5mM4yDTAo
To claim this, I am signing this object:
| <?php | |
| if(!isset($authKey)) { $authKey = "YOUR KEY HERE"; } | |
| if(!isset($longURL)) { $longURL = "http://join-shortest.com/ref/46cc802beb?user-type=new"; } | |
| $storeShortLink = "linkout"; | |
| DEFINE("apiBaseAddress", "https://api.shorte.st/v1/data/url"); | |
| function formatURLPostData($url){ return "urlToShorten=".$url; } | |
| function http_exist($url) { | |
| if (!preg_match("~^(?:f|ht)tps?://~i", $url)) { return "https://" . $url; } | |
| else { return $url; } |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| /* --------------------------------------------------------------------------- | |
| ** This software is in the public domain, furnished "as is", without technical | |
| ** support, and with no warranty, express or implied, as to its usefulness for | |
| ** any purpose. | |
| ** | |
| ** main.cpp | |
| ** | |
| ** V4L2 RTSP streamer | |
| ** | |
| ** H264 capture using middleware_video |
| <?php | |
| /** | |
| * @link https://gist.github.com/nhalstead/c3422e9f1fd213d381a12ad6e4664bf3 | |
| */ | |
| /** | |
| * Process URL | |
| * @param String URL Input | |
| * @return Array The URL data that is Given. | |
| */ |
| <?php | |
| /** | |
| * Warning! Read and use at your own risk! | |
| * | |
| * This tiny proxy script is completely transparent and it passes | |
| * all requests and headers without any checking of any kind. | |
| * The same happens with JSON data. They are simply forwarded. | |
| * | |
| * This is just an easy and convenient solution for the AJAX | |
| * cross-domain request issue, during development. |
| <?php | |
| $allowed = array("https", "http"); | |
| function protocolRegex($array){ | |
| if(empty($array)) { return "(\/\/)"; } | |
| foreach($array as $i => $v){ | |
| if(empty($v)){ | |
| unset($array[$i]); |
| <?php | |
| /** | |
| * Function Switch | |
| * Call the Funciton acording to the True or False Value. | |
| * If any more Paramiters are passed after the first 3 | |
| * they are passed as paramiters for the called funciton. | |
| * | |
| * @param boolean The Selection of the Funciton to execute. |
| <?php | |
| /** | |
| * Create Key Function | |
| * Generate a Key that you need with a specific length and a split character. | |
| * | |
| * @param Int Length of the Key, Total Length | |
| * @param Int|Boolean If False, Disabled (default) and the int will provide the spacing for the char. | |
| * @param Char|String The Separation Character for the Key every x characters. | |
| * @return Array Return of 'key' and 'hash' and 'hash_delimiter' |
| <html> | |
| <head> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.js"></script> | |
| <meta charset="UTF-8"> | |
| <style> | |
| html { | |
| font: 12px/1.2em sans-serif; | |
| } | |
| ul { |