Skip to content

Instantly share code, notes, and snippets.

View tomlane's full-sized avatar
🏠
Working from home

Tom Lane tomlane

🏠
Working from home
View GitHub Profile
{
"RTPPMDataMsgV1": {
"owner": "Network Rail",
"timestamp": "1428753062000",
"classification": "public",
"schemaLocation": "http://xml.networkrail.co.uk/ns/2007/NR rtppm_messaging_v1.17.xsd",
"Sender": {
"application": "RTPPM3",
"organisation": "String"
},
$(theWorld).change(function() {
alert( "You've changed the world." );
});
@tomlane
tomlane / plan.md
Last active August 29, 2015 14:14
Talk notes / plans

Open Rail Data

If all goes well my plan is to show something shiny and all the cloud stuff grinding away in the background keeping it all in check. Essentially there are four feeds/sets of data:

  • The station board feed (which I've wrapped and cleaned up a bit naming wise) which is a pull service.
  • Train movements, a push feed which contains messages about train 'activations' 'movements' and 'cancellations'. http://nrodwiki.rockshore.net/index.php/Train_Movements
  • The Train Describer, another push feed for (what I think is the awesome stuff) real time signal changes, points changes and route setting for trains. http://nrodwiki. rockshore.net/index.php/TD
  • The schedule information. Which 2 and 3 depend on for information on the train timing and details.
@tomlane
tomlane / BoxStarter
Created January 12, 2015 14:52
Dev Machine BoxStarter
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst fiddler4
cinst git-credential-winstore
cinst console-devel
cinst sublimetext2
cinst poshgit
cinst dotpeek
cinst visualstudio2013professional
@tomlane
tomlane / gist:b981b9dc143a64495ddb
Created October 25, 2014 13:55
Ship wreck causes and ships affected query
[{
"name": null,
"type": "/base/disaster2/shipwreck_cause",
"ships_wrecked_this_way": [{
"name": null
}]
}]
public bool onError(error)
{
if (error == true)
return true
return false
}
[laney:~/projects/yoSite] $ grunt server
/Users/laney/projects/yoSite/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js:53
KEYWORDS = makePredicate(KEYWORDS);
^
util.debug: Use console.error instead
DEBUG: ERROR in file: /Users/laney/projects/yoSite/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js / ReferenceError: KEYWORDS is not defined
Elapsed time
Total 120ms
[laney:~/projects/yoSite] $ grunt
var TomLane = {
isStudent: true,
experience: [
'html',
'css',
'JavaScript',
'git',
'tooling',
'yeoman',
'responsive design',
<!-- YUI JS Module Loader -->
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<!-- YUI CSS Includes -->
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?3.10.1/cssfonts/cssfonts-min.css&3.10.1/cssgrids/cssgrids-min.css&3.10.1/cssreset/cssreset-min.css&3.10.1/cssbase/cssbase-min.css">
bower cloning git://github.com/jrburke/requirejs
bower cached git://github.com/components/jquery.git
bower cached git://github.com/jrburke/requirejs
bower fetching jquery
bower cloning git://github.com/jlong/sass-twitter-bootstrap.git
bower fetching requirejs
bower fetching sass-bootstrap
bower cloning git://github.com/components/jquery.git
bower cached git://github.com/jlong/sass-twitter-bootstrap.git
bower cloning git://github.com/Modernizr/Modernizr.git