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/php | |
<?php | |
$time_start = microtime( true ); | |
//mysql setup | |
$host = 'localhost'; | |
$user = 'root'; | |
$pass = 'root'; | |
$db = 'wordpress'; |
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
{ | |
"role": "container", | |
"style": { | |
"backgroundColor": "#000" | |
}, | |
"layout": { | |
"columnStart": 0, | |
"columnSpan": 7, | |
"ignoreDocumentMargin": true, | |
"margin": { |
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
{ | |
"role": "container", | |
"style": { | |
"backgroundColor": "#000" | |
}, | |
"layout": { | |
"columnStart": 0, | |
"columnSpan": 7, | |
"ignoreDocumentMargin": true, | |
"margin": { |
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
{ | |
"role": "container", | |
"style": { | |
"backgroundColor": "#000" | |
}, | |
"layout": { | |
"columnStart": 0, | |
"columnSpan": 7, | |
"ignoreDocumentMargin": true, | |
"margin": { |
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
// Author: Ross Patton (abbreviated by KV) | |
// Link to WIRED json feed | |
var apiUrl = 'http://' + location.host + '/wp-json/wp/v2/posts/'; | |
// Fallback if OBR not available | |
if ( typeof OBR === 'undefined' ) { | |
$( getAll('poweredByOutbrain') ).remove(); | |
return $.getJSON( apiUrl, function(res) { |