Skip to content

Instantly share code, notes, and snippets.

View andrewbredow's full-sized avatar
💭
DJ is not available to answer questions.

Andrew Bredow andrewbredow

💭
DJ is not available to answer questions.
View GitHub Profile
@andrewbredow
andrewbredow / city_aliaser.rb
Last active March 13, 2019 17:27 — forked from cheshire137/city_aliaser.rb
List of aliases for US cities by state
#!/usr/bin/env ruby
require 'rubygems'
require 'mechanize'
require 'json'
url = "https://en.wikipedia.org/wiki/List_of_city_nicknames_in_the_United_States"
STATES = ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado",
"Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho",
"Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana",
"Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota",
@andrewbredow
andrewbredow / gist:3866712
Created October 10, 2012 16:27 — forked from danielmorrison/gist:3866520
unicode ruby tricks
# encoding: utf-8
module Kernel
define_method "√" do |number|
Math.sqrt(number)
end
end
# Then call:
# √ 5