Skip to content

Instantly share code, notes, and snippets.


Tim Williams idlem1nd

View GitHub Profile
View predictions_demo.js
$.connection.hub.logging = true;
$.connection.hub.url = "";
var hub = $.connection.predictionsRoomHub;
hub.client.showPredictions = updateBoard;
.done(function() {
console.log("tfl.predictions: connection started");
idlem1nd / LatLonConversion.cs
Created Sep 25, 2014
Can convert WGS84 Lat/Lon to OSGB Eastings/Northings and vice-versa. Credit for original work goes to Jonathan Stott
View LatLonConversion.cs
using System;
public class LatLonConversion
private LatLonConversion() { }
private static double Deg2Rad(double x)
return x * (Math.PI / 180);

Migrating from TFS to Git

This is a quick how-to of my experience using the git-tfs bridge to keep a TFS repository in sync with a Git repository, which subsequently allowed TFS to be migrated away from completely.

The git-tfs tool

At the time of writing, the latest version of git-tfs has issues with TFS branches that have been renamed and/or reparented. It also struggles with baseless merges. We will use pmmiosec's fork of git-tfs, specifically the rename_branch, which resolves issue #480 with git-tfs. Full instructions on building git-tfs from source can be found here, but to summarise:

# Get the source code