Skip to content

Instantly share code, notes, and snippets.

View lfigueira's full-sized avatar

Luis Figueira lfigueira

View GitHub Profile
@lfigueira
lfigueira / install-via-brew-cask.sh
Last active October 22, 2015 18:30
Mac OS X 10.11 El Capitan Setup
#!/bin/sh
brew cask install appcleaner
brew cask install cyberduck
brew cask install transmission
brew cask install flux
brew cask install iterm2
brew cask install java
brew cask install slack
brew cask install telegram
@lfigueira
lfigueira / bng_to_latlon.py
Last active March 24, 2021 11:14
Python script to convert British National grid coordinates (OSGB36 Eastings, Northings) to WGS84 latitude and longitude. The code from this script was copied/adapted from Hannah Fry's blog; the original code and post can be found here: http://www.hannahfry.co.uk/blog/2012/02/01/converting-british-national-grid-to-latitude-and-longitude-ii, toghe…
#
# Converts eastings and northings (British national grid coordinates) to Lat/Long
#
# Original code author: Hannah Fry; see code/comments here:
# http://www.hannahfry.co.uk/blog/2012/02/01/converting-british-national-grid-to-latitude-and-longitude-ii
#
from math import sqrt, pi, sin, cos, tan, atan2 as arctan2
import csv