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
Process: Python [39969] | |
Path: /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python | |
Identifier: Python | |
Version: 2.7.5 (2.7.5) | |
Code Type: X86-64 (Native) | |
Parent Process: bash [96576] | |
User ID: 503 | |
Date/Time: 2013-08-28 21:55:40.720 +0100 | |
OS Version: Mac OS X 10.8.4 (12E55) |
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
HOMEBREW_VERSION: 0.9.4 | |
ORIGIN: https://github.com/mxcl/homebrew | |
HEAD: 72ee11d988eff7e4af82eec813381f3f82950b08 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: 8-core 64-bit ivybridge | |
OS X: 10.8.4-x86_64 | |
Xcode: 4.6.3 | |
CLT: 4.6.0.0.1.1365549073 | |
LLVM-GCC: build 2336 |
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
// Source http://www.movable-type.co.uk/scripts/latlong-gridref.html | |
Number.prototype.toDeg = function() { // convert radians to degrees (signed) | |
return this * 180 / Math.PI; | |
} | |
osGridToLatLong = function(gridref) { | |
var E = gridref.easting; | |
var N = gridref.northing; |
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
> checkFootfallCompleteness2() | |
[1] "The total number of grid id areas referenced in the file is 23152" | |
[1] "Checking 10/12/2012" | |
[1] "The missing areas are" | |
[1] "1122333312233" "1122333312341" "1122333312344" "1122333312432" "1122333321343" | |
[1] "Checking 11/12/2012" | |
[1] "The missing areas are" | |
[1] "1122333312341" "1122333312343" "1122333312344" "1122333312432" "1122333313212" "1122333321343" | |
[7] "1122333432334" | |
[1] "Checking 12/12/2012" |
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
findClosestOutputArea <- function (incident) { | |
distances <- spDistsN1(data.matrix(outputAreas[, c('longitudeCentre', 'latitudeCentre')]), matrix(c(incident$davetazLongitude, incident$davetazLatitude), nrow = 1, ncol = 2, byrow = TRUE), longlat = TRUE) | |
outputAreas[match(min(distances), distances), ] | |
} |
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
[EMPTY FOLDER!] |
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
{ | |
"name": "test", | |
"version": "0.0.1", | |
"author": "Gianfranco Cecconi <[email protected]>", | |
"description": "Does what it says on the tin", | |
"contributors": [ | |
{ | |
"name": "Gianfranco Cecconi", | |
"email": "[email protected]" | |
} |
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
Ode to Autumn | |
by John Keats | |
Season of mists and mellow fruitfulness, | |
Close bosom-friend of the maturing sun; | |
Conspiring with him how to load and bless | |
With fruit the vines that round the thatch-eaves run; | |
To bend with apples the moss'd cottage-trees, | |
And fill all fruit with ripeness to the core; | |
To swell the gourd, and plump the hazel shells |
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
"SPORTS_ID","EVENT_ID","SETTLED_DATE" | |
"999","123456789","2013-01-07 01:19:45" |
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
var async = require('async'), | |
cheerio = require('cheerio'), | |
request = require('request'), | |
argv = require('yargs').argv, | |
_ = require('underscore'); | |
var baseUrl = "http://journalisted.com/search?q=" + encodeURIComponent(argv._.join(' ')) + "&o=date&type=article"; | |
var getNoOfPages = function (callback) { | |
request(baseUrl, function (err, response, body) { |
OlderNewer