A quick look at Canada's GHG emissions since 1990.
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
var adCampaignPicoHandler = function(){ | |
var REGISTERED_EVENT_CAPTURED = "ad-reg-event-captured"; | |
var PAID_EVENT_CAPTURED = "ad-paid-event-captured"; | |
function setCookie(name,value,days) { | |
var expires = ""; | |
if (days) { | |
var date = new Date(); | |
date.setTime(date.getTime() + (days*24*60*60*1000)); | |
expires = "; expires=" + date.toUTCString(); | |
} |
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
// In the Web UI for Slack, navigate to a channel, click on "See All Members" | |
// and then scroll until you've hit the end of the list | |
// Open your browser's console and run this | |
var NameAndTitles = document.getElementsByClassName('c-base_entity__text-contents') | |
var NamesData = []; | |
for (var i=0; i < NameAndTitles.length; i++) { | |
var title = NameAndTitles[i].getElementsByClassName('c-member__title')[0]; |
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
<script type='text/javascript'> | |
var _sf_async_config = _sf_async_config || {}; | |
/** CONFIGURATION START **/ | |
_sf_async_config.uid = #####; //CHANGE THIS | |
_sf_async_config.domain = 'YourDomain.com'; //CHANGE THIS | |
_sf_async_config.useCanonical = true; | |
_sf_async_config.sections = 'Change this to your Section name'; //CHANGE THIS | |
_sf_async_config.authors = 'Change this to your Author name'; //CHANGE THIS | |
/** CONFIGURATION END **/ | |
(function() { |
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
<IfModule mod_headers.c> | |
#RequestHeader set X-Prerender-Token "YOUR_TOKEN" | |
</IfModule> | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
<IfModule mod_proxy_http.c> | |
RewriteCond %{HTTP_USER_AGENT} baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest|slackbot|vkShare|W3C_Validator [NC,OR] |
I hereby claim:
- I am phillipadsmith on github.
- I am phillipadsmith (https://keybase.io/phillipadsmith) on keybase.
- I have a public key whose fingerprint is 25F7 F458 C261 B25B 5297 8F0A 518B F15D D63C 5D49
To claim this, I am signing this object:
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
diff --git a/wp-content/plugins/json-api/models/post.php b/wp-content/plugins/json-api/models/post.php | |
index 4a8c492..c5b28cb 100644 | |
--- a/wp-content/plugins/json-api/models/post.php | |
+++ b/wp-content/plugins/json-api/models/post.php | |
@@ -18,7 +18,6 @@ class JSON_API_Post { | |
var $modified; // String (modified by date_format query var) | |
var $categories; // Array of objects | |
var $tags; // Array of objects | |
- var $author; // Object | |
var $comments; // Array of objects |
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
if ($_SERVER['REMOTE_ADDR']=='127.0.0.1') { | |
define('WP_ENV', 'local'); | |
} elseif ($_SERVER['HTTP_HOST']=='develop.project.com') { | |
define('WP_ENV', 'develop'); | |
} elseif ($_SERVER['HTTP_HOST']=='master.project.com') { | |
define('WP_ENV', 'develop'); | |
} else { | |
define('WP_ENV', 'production'); | |
} |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use v5.14.2; | |
use Google::GeoCoder::Smart; | |
use LWP::Simple; | |
use JSON; | |
use Data::Dump qw(dump); |
NewerOlder