Skip to content

Instantly share code, notes, and snippets.

@daniellevass
daniellevass / train.js
Created February 12, 2016 22:21
trainjs
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) {
@daniellevass
daniellevass / 1.md
Last active December 30, 2015 04:09
files to install

#Things to install when I wipe my macbook

Applications

  • Android Studio
  • Atom
  • Flux
  • Genymotion
  • Google Chrome
  • momentum
@daniellevass
daniellevass / christmas.js
Created December 25, 2015 00:47
my script to collect data from google's santa tracker
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(){
@daniellevass
daniellevass / santa.json
Last active December 25, 2015 12:41
norad santa tracking data
{
"status": "OK",
"language": "en",
"now": 1451047175962,
"timeOffset": 120000,
"fingerprint": "085dbe1720e8f668fce40130550574be5c2fdf97",
"refresh": 49632,
"switchOff": false,
"clientSpecific": {
"DisableEarth": false,
@daniellevass
daniellevass / 1.md
Last active January 20, 2016 20:11
Sending data to LittleBits

Sending Data to LittleBits 🎁

1. JSFiddle

Start a new JSFiddle

2. JQuery

Add in jQuery by clicking the little cog in the JavaScript square

@daniellevass
daniellevass / 1.md
Last active December 19, 2015 17:03
christmas countdowns

#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

1. JSFiddle

Start a new JSFiddle

2. JQuery

@daniellevass
daniellevass / 1.md
Last active December 16, 2015 10:09
Reindeer ListView

#Making Reindeer ListViews

1. New Activity

Create a new blank activity - call it ReindeerListActivity

Imgur

@daniellevass
daniellevass / bath_college.md
Created November 15, 2015 15:06
bath college future tech

Future Mobile Technologies

I want each of you to comment with an example of a future technology 😄

Please do:

  • write some text
  • use pictures
  • reference and link to other interesting information
@daniellevass
daniellevass / littlebits.md
Last active October 23, 2016 05:04
littlebits hack day @ bristol

##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.