Skip to content

Instantly share code, notes, and snippets.

View jamesnesfield's full-sized avatar

James Nesfield jamesnesfield

View GitHub Profile
@jamesnesfield
jamesnesfield / googlemapstyle.json
Created January 24, 2014 17:44
google map style
Map data ©2014 Google
Terms of Use
Visual refresh
Report a map error
@jamesnesfield
jamesnesfield / github_ribbon
Created January 24, 2014 12:36
github ribbon
<a href="https://github.com/jamesnesfield/lineofsite"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub"></a>
@jamesnesfield
jamesnesfield / annotateEdinburgh.html
Created January 23, 2014 16:56
annotateEdinburgh
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
<body>
<div id='map'></div>
@jamesnesfield
jamesnesfield / phaseballs.css
Last active January 4, 2016 05:39
phaseballs
body {
margin: 0;
padding: 0;
background: #191f27;
}
.container {
width: 200px;
height: 100px;
padding-top: 100px;
@jamesnesfield
jamesnesfield / replace recursive
Created July 18, 2013 11:48
a multi-file hierarchical "find and replace" that plays nice with spaces in names.
#!/bin/bash
startdirectory="/Users/jamesnesfield/Desktop/replaceTest/"
searchterm="foo"
replaceterm="bar"
i=0
IFS=$'\n';
for file in $( grep -l -R $searchterm $startdirectory)
do