This file contains hidden or 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
{ | |
"node": true, | |
"bitwise" : true, | |
"camelcase" : true, | |
"curly" : true, | |
"eqeqeq" : true, | |
"forin" : true, | |
"freeze" : true, | |
"immed" : true, |
This file contains hidden or 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
'use strict'; | |
var _ = require('underscore'); | |
/** | |
Custom implementation of Parallel: | |
Async.parallel stops on the first error. | |
This module captures all errors (but does not call the error callback) | |
The result is that if one data request for a page fails, it does not stop |
This file contains hidden or 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
var bundler = watchify(browserify('./src/main.js', watchify.args)); | |
function bundle() { | |
return bundler.bundle() | |
// log errors if they happen | |
.on('error', notify.onError(notifyError)) | |
.pipe(source('src/main.js')) | |
.pipe(buffer()) | |
.pipe(rename('kormorant-dev.min.js')) | |
.pipe(sourcemaps.init({loadMaps: true})) // loads map from browserify file |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<ROOT xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://trackernet.lul.co.uk"> | |
<Disclaimer>This system is an INFORMATION ONLY system, relying entirely on | |
information received from the relevant Operational Railway Control System(s). It is NOT | |
considered a safety related system in the Railway Engineering sense. However, | |
the information reported may trigger user intervention by staff regarding possible | |
incidents on the railway, and confirmation of the situation observed should be obtained prior | |
to any corrective action being taken.</Disclaimer> | |
<WhenCreated>4 Jan 2015 9:05:52</WhenCreated> |
This file contains hidden or 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
/** | |
* Get a deeply nested object property without throwing an error | |
* | |
* Usage: | |
* _.get(obj, 'foo.bar'); | |
* _(obj).get('foo.bar'); | |
* | |
* @param {Object} obj | |
* @param {String} path Path e.g. 'foo.bar.baz' | |
* @return {Mixed} Returns undefined if the property is not found |
This file contains hidden or 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
'use strict'; | |
var fs = require('fs'); | |
var jade = require('jade'); | |
var path = require('path'); | |
var buildOut = function(folder, relativePath, out) { | |
var currentFolder = folder + '/' + relativePath; | |
var files = fs.readdirSync(currentFolder); | |
var counter = files.length; |
This file contains hidden or 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
'use strict'; | |
var request = require('request'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var config = require('./config'); | |
var generateHash = require('adstream-adbank-api-generate-hash'); | |
var url = config.api + '/assets/register'; |
This file contains hidden or 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
'use strict'; | |
var request = require('request'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var config = require('./config'); | |
var generateHash = require('adstream-adbank-api-generate-hash'); | |
var url = config.api + '/assets/register'; |
This file contains hidden or 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
public class GenerateHash | |
{ | |
private string key; | |
private string secret; | |
public GenerateHash(string key, string secret) | |
{ | |
this.key = key; | |
this.secret = secret; | |
} |
This file contains hidden or 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
'use strict'; | |
/** | |
* Takes a look and the dependencies object and adds each item to the bundled dependencies array. | |
*/ | |
var fs = require('fs'); | |
var file = __dirname + '/../package.json'; | |
var pkg = require(file); |