Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env ruby
list = File.read(ARGV[0])
dir = ARGV[1]
list.each_line do |file|
file.chomp!
# puts "cp #{file}.jpg #{dir}"
`cp #{file}.jpg #{dir}`
end
@colemanm
colemanm / map.geojson
Last active August 29, 2015 14:18 — forked from anonymous/map.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@colemanm
colemanm / map.geojson
Last active August 29, 2015 14:18 — forked from anonymous/map.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@colemanm
colemanm / google-sheets-geocode.js
Last active May 24, 2018 13:36
Google Sheets geocoder
function geocodeSelectedCells() {
var sheet = SpreadsheetApp.getActiveSheet();
var cells = sheet.getActiveRange();
// Must have selected 3 columns (Location, Lat, Lng).
// Must have selected at least 1 row.
if (cells.getNumColumns() != 3) {
Logger.log("Must select the Location, Lat, Lng columns.");
return;
{
id: "8faf0917-1987-4ac6-bcc7-4fbf71d191f3",
type: "record.create",
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe",
data: {
status: null,
version: 1,
id: "7553fd44-78bb-41eb-a453-8b301ae5e52e",
form_id: "295eda4a-7795-4881-9f62-085a930b356e",
project_id: null,
@colemanm
colemanm / shore_acres_circuit.json
Created May 4, 2014 16:59
Shore Acres bike circuit
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@colemanm
colemanm / dunedin_sail.geojson
Last active December 25, 2015 12:59
Sailing in Dunedin
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@colemanm
colemanm / gdal_configure.sh
Created September 28, 2013 16:06
GDAL configure
./configure \
--with-local=yes \
--prefix=/Users/coleman/local \
--with-threads \
--with-libtool \
--with-libtiff=internal \
--with-geotiff=internal \
--with-pcraster=internal \
--with-pcidsk=internal \
--with-bsb \
@colemanm
colemanm / map.geojson
Created September 4, 2013 20:11
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.