Skip to content

Instantly share code, notes, and snippets.

@ricroberts
ricroberts / rubyjobs.txt
Created August 8, 2012 09:55
barry - ruby jobs
Hi Ric,
Just to build on Bens introduction. We are a unique consultancy focussed around Recruitment and social netWorks, our core focus is on the Java market, rather than Ruby. Our business model is very different from typical recruitment companies in that we generate 100% of our revenue from Recruitment, but spend 50% of our time on community focussed work. Rather than spend heavily on SEO or aggressive cold calling for new business, we do good things in the industry around building communities and organising events, we then spend time networking, building long term trusted relationships and proactively seeking referrals and recommendations. As a result of our model we are approached by many of the best developers in London before anyone else and have connections with many of the top employers.
As an example of what we do, and as Ben mentioned, I founded the London Java Community in 2007 and have since invested vast amounts of time and money growing it up to one of the largest and most active Java User Gro
@ricroberts
ricroberts / map-html.js
Created January 19, 2012 13:13
Main closure
(function(){
var mapManager
, idleListener = null
, startTime
, map = new google.maps.Map(document.getElementById("map_canvas"), {
zoom: 14,
center: new google.maps.LatLng(53.48, -2.245), // Manchester
mapTypeId: google.maps.MapTypeId.ROADMAP,
streetViewControl: false
});
@ricroberts
ricroberts / lsoaData.js
Created January 19, 2012 13:05
lsoaData console log
53.4,-2.3,53.5,-2.2: Object
E01005061: Object
label: "Manchester 018A"
lat: 53.47055
lng: -2.20851
score: 53.71
uri: "http://opendatacommunities.org/id/geography/lsoa/E01005061"
E01005062: Object
E01005063: Object
E01005064: Object
@ricroberts
ricroberts / map-manager.js
Created January 19, 2012 12:49
getLsoaData()
// get the LSOA data from the database.
var getLsoaData = function(tiles) {
// define this inside this closure - it's not useful outside the scope of this func
var buildSparql = function(tile) {
var lowerLat = tile[0][0];
var lowerLong = tile[0][1];
var upperLat = tile[1][0];
var upperLong = tile[1][1];
@ricroberts
ricroberts / map-manager.js
Created January 19, 2012 12:31
MapManager refresh
MapManager.prototype = {
refresh: function() {
$(this).trigger('started');
errored = false;
// clear these variables for this refresh
if (map.getZoom() > minZoom) {
$(this).trigger('zoomOK');
var tiles = getTiles();
@ricroberts
ricroberts / map-manager.js
Created January 19, 2012 12:22
MapManager Constructor
var MapManager = function(googleMap, initialScoreDomain) {
self = this;
map = googleMap;
scoreDomain = initialScoreDomain;
$(this).bind('lsoaDataRetrieved', function() {
lsoaDataRetrieved = true;
// TODO: this is where we'll refresh the polygons on the map, later.
// for now, just log out the lsoa data, and say we've done
@ricroberts
ricroberts / map-manager.js
Created January 19, 2012 12:09
Map Manager structure
(function() {
// the constructor.
var MapManager = function(googleMap, initialScoreDomain) {
}
// public API
MapManager.prototype = {
}
@ricroberts
ricroberts / query.sparql
Created September 28, 2011 20:04
SPARQL query for LSOA data
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?lsoa ?notation ?label ?lat ?long ?score
WHERE {
GRAPH <http://opendatacommunities.org/id/graph/geography/lsoa> {
?lsoa a <http://opendatacommunities.org/def/geography#LSOA> .
?lsoa geo:lat ?lat .
?lsoa geo:long ?long .
?lsoa <http://www.w3.org/2004/02/skos/core#notation> ?notation .
@ricroberts
ricroberts / map-manager.js
Created September 28, 2011 13:15
Handle the boundaryDataRetrieved and DataError events in the constructor
$(this).bind('boundaryDataRetrieved', function() {
refreshPolygons();
});
$(this).bind('dataError', function() {
$(this).trigger('finished'); // tell people we're done
});
@ricroberts
ricroberts / map-manager.js
Created September 28, 2011 12:46
private variable for boundaryData
// private variables
var map
, scoreDomain
, boundaryData = {} // map of tiles -> data
, self;