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
@echo off | |
set /p domain="Enter Domain: " | |
set OPENSSL_CONF=../conf/openssl.cnf | |
if not exist .\%domain% mkdir .\%domain% | |
..\bin\openssl req -config cert.conf -new -sha256 -newkey rsa:2048 -nodes -keyout %domain%\server.key -x509 -days 3650 -out %domain%\server.crt | |
echo. | |
echo ----- |
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
<?php | |
class MY_Security extends CI_Security{ | |
//overriding the normal csrf_verify, this gets automatically called in the Input library's constructor | |
//verifying on POST and PUT and DELETE | |
public function csrf_verify(){ | |
$request_method = strtoupper($_SERVER['REQUEST_METHOD']); |
(function() { | |
var $injector = angular.injector(['ng']); | |
$injector.invoke(function($http, $rootScope) { | |
// this works! | |
$rootScope.$apply(function() { | |
$http.get("/auth/csrf_token").then(function(response) { | |
angular.module("app").constant("CSRF_TOKEN", response.csrf_token); | |
angular.bootstrap(document, ['app']); |
<html> | |
<head> | |
<title>Select styles with CSS only</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
background-color: #fff; | |
font-family: helvetica, sans-serif; | |
margin: 4% 10% | |
} |
if(checkLogin()){ | |
var app = angular.module('harvest', ['ui.bootstrap']); | |
app.run(function($http,HARVEST_API){ | |
if( harvest.newData){ | |
harvest.newData.method='new_token'; | |
$http.post('ajax.php',harvest.newData); |
<?php | |
echo '<pre>'; | |
print_r($_GET); |
var data={'foo':'bar'} |
<option value="New York">New York</option> | |
<option value="Boston">Boston</option> |
/** | |
* Copyright (c) 2009 Chris Leonello | |
* jqPlot is currently available for use in all personal or commercial projects | |
* under both the MIT and GPL version 2.0 licenses. This means that you can | |
* choose the license that best suits your project and use it accordingly. | |
* | |
* Although not required, the author would appreciate an email letting him | |
* know of any substantial use of jqPlot. You can reach the author at: | |
* chris dot leonello at gmail dot com or see http://www.jqplot.com/info.php . | |
* |