#Things to install when I wipe my macbook
- Android Studio
- Atom
- Flux
- Genymotion
- Google Chrome
- momentum
| var soap = require('soap'); | |
| var url = 'https://lite.realtime.nationalrail.co.uk/OpenLDBWS/wsdl.aspx?ver=2015-05-14'; | |
| var args = { | |
| numRows: 10, | |
| crs: 'PAD' | |
| }; | |
| soap.createClient(url, function(err, client) { |
| var request = require('request'); | |
| var dateFormat = require('dateformat'); | |
| var fs = require('fs'); | |
| var colors = require('colors'); | |
| var destinations;//our final list of destinations | |
| //function to get data from google - set on a timeout at the bottom to refresh it | |
| function getData(){ |
| { | |
| "status": "OK", | |
| "language": "en", | |
| "now": 1451047175962, | |
| "timeOffset": 120000, | |
| "fingerprint": "085dbe1720e8f668fce40130550574be5c2fdf97", | |
| "refresh": 49632, | |
| "switchOff": false, | |
| "clientSpecific": { | |
| "DisableEarth": false, |
Start a new JSFiddle
Add in jQuery by clicking the little cog in the JavaScript square
#Christmas Countdowns
we're going to look at making a count down timer that you can use with the littlebits or put on a website
Start a new JSFiddle
##1 starting
Firstly, using terminal install YQL and request if you don't have it already:
npm install request
npm install yql
Create a new .js file - make sure you can navigate to it with the terminal prompt to run.