View gist:6979d1a879003c9c731c445d2f4e6cf1
This file contains 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
Verifying that +rossigee is my blockchain ID. https://onename.com/rossigee |
View index.html
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Google Maps marker bug demonstration</title> | |
<meta charset="utf-8"> | |
<style> | |
html, body, #map-canvas { | |
height: 100%; | |
margin: 0px; |
View cpd-fetch-property.php
This file contains 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 | |
$application_token = "abcdef12-4855-11e4-a25f-06ee74823f7d"; | |
# Get a visitor token | |
$url = "https://www.cpd.co.uk/restapi/v1/agents/visitortoken/"; | |
$curl = curl_init(); | |
curl_setopt($curl, CURLOPT_URL, $url); | |
curl_setopt($curl, CURLOPT_HTTPHEADER, array( | |
'X-CPD-Token: '.$application_token |
View cpd-agenttoken-test.php
This file contains 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 | |
$application_token = "abcdef12-4855-11e4-a25f-06ee74823f7d"; | |
$url = "https://www.cpd.co.uk/restapi/v1/agents/visitortoken/"; | |
$curl = curl_init(); | |
curl_setopt($curl, CURLOPT_URL, $url); | |
curl_setopt($curl, CURLOPT_HTTPHEADER, array( | |
'X-CPD-Token: '.$application_token | |
)); |
View cpd-oauth2-session-token.php
This file contains 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 | |
$params = array( | |
"client_id" => "683c5835a8d36a5bb974", | |
"client_secret" => "50ac9cb374989802d3d437c3fe0d7d8829c00e1b", | |
"username" => "user@theirdomain.co.uk", | |
"password" => "theirpasswordhere", | |
"grant_type" => "password", | |
); | |
$postData = ""; |
View file_age_secs
This file contains 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
#!/bin/bash | |
# | |
# Returns (via stdout) the number of seconds since a file was last changed. Useful for checking a | |
# 'success' timestamp/flag file to identify a stale/dead process. | |
# | |
echo $[`date +%s` - `stat -c %Y $1`] |
NewerOlder