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
// place in root of project as .vscode/settings.json | |
{ | |
"workbench.colorCustomizations": { | |
"titleBar.activeForeground": "#fff", | |
"titleBar.inactiveForeground": "#000000CC", | |
"titleBar.activeBackground": "#F40009", | |
"titleBar.inactiveBackground": "#F40009CC" | |
}, |
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
<?php | |
/* GET OUR WEATHER DATA */ | |
// Get our JSON | |
$strJsonFileContents = file_get_contents("YOUR API LINK GOES HERE"); | |
$weather = json_decode($strJsonFileContents, true); | |
// Convert temperature and dew point | |
$temp = round($weather[currently][temperature]) . '°'; |
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
document.addEventListener("readystatechange", function () { | |
switch (document.readyState) { | |
case "complete": | |
{ | |
// put your code here that will run after the page loads completely. | |
// if there is "flashing" and complaints are raised you can choose an earlier readyState | |
// always use "complete" if loading external resources | |
} | |
} | |
}); |
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
### Keybase proof | |
I hereby claim: | |
* I am colinlord on github. | |
* I am colinlord (https://keybase.io/colinlord) on keybase. | |
* I have a public key ASBCN63srjPT5FYONUFb8Wgcm00JcibCwczzzb0w1we-AAo | |
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
[ | |
{ | |
"city": "New York", | |
"growth_from_2000_to_2013": "4.8%", | |
"latitude": 40.7127837, | |
"longitude": -74.0059413, | |
"population": "8405837", | |
"rank": "1", | |
"state": "New York" | |
}, |