Skip to content

Instantly share code, notes, and snippets.

View scottynomad's full-sized avatar

Scott Hoffberg Wilson scottynomad

View GitHub Profile
@scottynomad
scottynomad / getgeo.sh
Created October 1, 2012 21:09 — forked from EspadaV8/gist:1357237
Script to import Geonames into PostgreSQL taken from http://forum.geonames.org/gforum/posts/list/15/926.page
#!/bin/bash
#===============================================================================
#
# FILE: getgeo.sh
#
# USAGE: ./getgeo.sh
#
# DESCRIPTION: run the script so that the geodata will be downloaded and inserted into your
# database
#
hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgExnLwNF07uekMEgE2BQ9alrc0AWjSR+6xKTZVJ3ocUkKp3BheWxvYWTFAvV7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwMTMxOWNiYzBkMTc0ZWVlN2E0MzA0ODA0ZDgxNDNkNmE1YWRjZDAwNWEzNDkxZmJhYzRhNGQ5NTQ5ZGU
4NzE0OTBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwMTMxOWNiYzBkMTc0ZWVlN2E0MzA0ODA0ZDgxNDNkNmE1YWRjZDAwNWEzNDkxZmJhYzRhNGQ5NTQ5ZGU4NzE0OTBhIiwidWlkIjoiNzE5NGVjOWVhZTFmMmUwODk3NDJjOGQ2M2U1NWY4MTkiLCJ1c2VybmFtZSI6InN3aWxzb25wcmVtaX
NlIn0sInNlcnZpY2UiOnsibmFtZSI6ImdpdGh1YiIsInVzZXJuYW1lIjoic2NvdHR5bm9tYWQifSwidHlwZSI6IndlYl9zZXJ2aWNlX2JpbmRpbmciLCJ2ZXJzaW9uIjoxfSwiY2xpZW50Ijp7Im5hbWUiOiJrZXliYXNlLmlvIGdvIGNsaWVudCIsInZlcnNpb24iOiIxLjAuMTgifSwiY3RpbWUiOjE0ODYxN
jQ3NDcsImV4cGlyZV9pbiI6NTA0NTc2MDAwLCJtZXJrbGVfcm9vdCI6eyJjdGltZSI6MTQ4NjE2NDczNCwiaGFzaCI6ImJiMmY4YWE4ZDA4NjdjZjhhZmMzZTdjYzI5YmMzNWE2OTAwYjcyZjBlNzI2NmY2ZjE1NmFjYzVhMDIyMWE2YmVhODgxOGViYzQ3NmI1YTY3ZjUxY2I3OTg2ZThiYjQ2ZDQ2N2VkZTM1
Y2EwOGNmNTQzMTJlMjIyNzhjNjU3NzhkIiwic2Vxbm8iOjgzNDQ0Nn0sInByZXYiOiIyZTg2ODlmMzllMzg3MTBjZDQ0YWU5
@scottynomad
scottynomad / day12.rs
Created December 12, 2020 06:19
AOC 2020 Day 12
pub mod day12 {
// (+E/-W, +N/-S)
#[derive(Debug, Copy, Clone)]
pub struct Point(f32, f32);
#[derive(Debug)]
pub struct State {
current: Point,
heading: Point