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
# SYNTAX: | |
var pattern = new RegExp(pattern, attributes); # attributes: g (global); i (case-sensitive); m (multiline matches) | |
var pattern = /pattern/attributes; # same as above | |
# BRACKETS: | |
[...]: Any one character between the brackets. | |
[^...]: Any one character not between the brackets. |
//FastLED_AnalogueInput.ino | |
/* | |
Using a potentiometer to control colour, brightness and speed. | |
Wire up as per http://arduino.cc/en/Tutorial/AnalogInput | |
You can connect the wiper, to any analogue input pin, and | |
adjust the settings below. | |
You will need three 10k potentiometers. | |
*/ |
(function ($) { | |
'use strict'; | |
var requestHeaders = { | |
'X-RequestDigest': $("#__REQUESTDIGEST").val(), | |
"accept": "application/json; odata=nometadata", | |
"content-type": "application/json;odata=nometadata" | |
}; | |
var userData = { |
private _makePOSTRequest(): void { | |
const spOpts: ISPHttpClientOptions = { | |
body: `{ Title: 'Developer Workbench', BaseTemplate: 100 }` | |
}; | |
this.context.spHttpClient.post(`${this.context.pageContext.web.absoluteUrl}/_api/web/lists`, SPHttpClient.configurations.v1, spOpts) | |
.then((response: SPHttpClientResponse) => { | |
// Access properties of the response object. | |
console.log(`Status code: ${response.status}`); |
//Lookup Column: Allow multiple values | |
// jQuery Select: | |
jQuery("select[title='Vehicle']") ; | |
// read selected options | |
jQuery("select[title='Vehicle'] option:selected").text() ; | |
// Hide one of the OPTIONS in the drop down selector (addressed via value, NOT text): | |
jQuery("select[title='Vehicle'] option[value='2']").remove() | |
// Hide the field and its label from view | |
jQuery("select[title='Vehicle']").closest('tr').hide() |
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
param( | |
[Parameter(Mandatory = $true)] | |
[string]$ListTitle, | |
[Parameter(Mandatory = $true)] | |
[int]$ItemId, | |
[Parameter(Mandatory = $true)] | |
[string]$Path | |
) |