ESPN's hidden API endpoints
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
//Parse the GA Cookie | |
function gaParseCookie() { | |
if (isset($_COOKIE['_ga'])) { | |
list($version, $domainDepth, $cid1, $cid2) = explode('.', $_COOKIE["_ga"], 4); | |
$contents = array('version' => $version, 'domainDepth' => $domainDepth, 'cid' => $cid1 . '.' . $cid2); | |
$cid = $contents['cid']; | |
} else { | |
$cid = gaGenerateUUID(); | |
} | |
return $cid; |
<?php | |
/*========================== | |
This snippet shows how to add an active user count to the WordPress Dashboard. | |
Copy these contents to functions.php | |
===========================*/ | |
//Active Users Metabox | |
add_action('wp_dashboard_setup', 'gearside_activeusers_metabox'); | |
function gearside_activeusers_metabox(){ |
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
/* Show the move cursor to demonstrate drag/drop scrolling on the interface. */ | |
#board { | |
cursor: move; | |
} | |
#board .list { | |
cursor: default; | |
} | |
/* Change the background to a texture while maintaining board color. */ |
<?php | |
//Add Open/Closed info to location listing columns | |
add_filter('manage_edit-location_columns', 'schc_location_hours_columns_head'); | |
function schc_location_hours_columns_head($defaults){ | |
$defaults['openclosed'] = 'Open/Closed'; | |
return $defaults; | |
} | |
add_action('manage_location_posts_custom_column', 'schc_location_hours_columns_content', 15, 3); | |
function schc_location_hours_columns_content($column_name, $id){ | |
if ( $column_name == 'openclosed' ){ |
<script> | |
jQuery(document).on('ready', function(){ | |
mapInfo = []; | |
mapActions(); | |
jQuery.getScript('https://www.google.com/jsapi?key=' + nebula.site.options.nebula_google_browser_api_key, function(){ | |
google.load('maps', '3', { | |
callback: function(){ | |
getAllLocations(); | |
} |
function once(fn, args, unique){ | |
if ( typeof onces === 'undefined' ){ | |
onces = {}; | |
} | |
if ( typeof fn === 'function' ){ //If the first parameter is a function | |
if ( typeof args === 'string' ){ //If no parameters | |
args = []; | |
unique = args; | |
} |
100dollars-seo.com | |
4webmasters.org | |
7makemoneyonline.com | |
aliexpress.com | |
anticrawler.org | |
best-seo-offer.com | |
best-seo-solution.com | |
bestwebsitesawards.com | |
blackhatworth.com | |
buttons-for-website.com |
//This can go in main.js or where ever. | |
jQuery.getJSON('/includes/twitter_cache.php', function(data) { //If using Nebula, the path will be: nebula.site.directory.stylesheet.uri + '/includes/twitter_cache.php' | |
jQuery.each(data, function(i) { | |
console.log(data[i]); | |
}); | |
//Example full implementation: | |
jQuery('#tweetlink').attr('href', 'https://twitter.com/' + data[0].user.screen_name).text('@' + data[0].user.screen_name); | |
var tweetTime = new Date(Date.parse(data[0].created_at)); | |
jQuery('#tweet').html(tweetLinks(data[0].text)).append(" <span class='twitter-posted-on'><i class='fa fa-clock-o'></i> " + timeAgo(tweetTime) + "</span>"); |
function gaParseCookie() { | |
if (isset($_COOKIE['_ga'])) { | |
list($version,$domainDepth, $cid1, $cid2) = explode('.', $_COOKIE["_ga"], 4); | |
$contents = array('version' => $version, 'domainDepth' => $domainDepth, 'cid' => $cid1 . '.' . $cid2); | |
$cid = $contents['cid']; | |
} else { | |
$cid = gaGenerateUUID(); | |
} | |
return $cid; | |
} |