Leaflet documentation:
http://leafletjs.com/reference.html
Simple Mapbox map:
https://www.mapbox.com/mapbox.js/example/v1.0.0/
Leaflet plug-in to use common tile providers:
# I bumped into some problems installing Drake ( https://github.com/Factual/drake ) on OSX, so here's what I did: | |
# 1. Follow the installation instructions here up through "Run Drake from the uberjar": | |
# https://github.com/Factual/drake/blob/251a22b27b5ded1fff522f39f06d3e06c77daf74/README.md | |
# (This is the specific README version I used.) | |
# 2. Move the 'drake' directory to Applications: | |
mv drake/ ~/Applications/ | |
# 3. Install Drip ( https://github.com/flatland/drip ) for speedier load time. |
require 'httparty' | |
require 'nokogiri' | |
require 'pry' | |
page = HTTParty.get("http://lafayette.granicus.com/ViewPublisher.php?view_id=3").body | |
parsed_page = Nokogiri::HTML(page) | |
all_agenda_link_elements = parsed_page.css("a").select { |link| link.children.text == "Agenda" } | |
first_agenda = HTTParty.get all_agenda_link_elements[1].attributes["href"].value | |
binding.pry |
so what we do | |
is have multiple repos, some public some private | |
you can add private repos to a "meta-waffle” (the repo that sorta holds all others underneath it for waffle’s purposes) | |
and then it will show up for YOU (and others with permissions) but not for OTHERS | |
Waffle instructions for managing multiple repos in a single waffle: https://github.com/waffleio/waffle.io/wiki/FAQs#multirepo | |
so what i’d do is create a new repo (public) called something like “kansas-city-fellows” or somesuch | |
then that can be the “meta waffle” and you can configure it per the above link by adding additional project-specific repos |
// Quantizing data into buckets | |
function Quantizer(data_array) { | |
min = d3.min(data) | |
max = d3.max(data) | |
this.quantizeNumber = d3.scale.quantize() | |
.domain([min,max]) | |
.range([1,5]) // Start with only mapping on 1-5 color scale | |
} |
Leaflet documentation:
http://leafletjs.com/reference.html
Simple Mapbox map:
https://www.mapbox.com/mapbox.js/example/v1.0.0/
Leaflet plug-in to use common tile providers:
[alias] | |
amend = commit --amend -a | |
br = branch | |
co = checkout | |
ds = diff --staged | |
di = diff | |
fetchall = fetch -v --all | |
log-fancy = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative | |
log-me = !UN=$(git config user.name)&& git log --author="\"$UN\"" --pretty=format:'%h %cd %s' --date=short | |
log-nice = log --graph --decorate --pretty=oneline --abbrev-commit |
require 'pry' | |
require 'rubillow' | |
Rubillow.configure do |config| | |
config.zwsid = ENV["ZILLOW_KEY"] | |
end | |
hoods = Rubillow::Neighborhood.region_children({ :state => 'IN', :city => 'South Bend', :childtype => 'neighborhood' }) | |
# Hash method -- not using | |
#hood_region_ids = Hash.new |
=begin | |
Every day I use Ruby I see more and more why people become evangelists. | |
Take today: I was toying with evaluating different approaches to match two | |
data sources (API results and a giant local database), and I realized, | |
"wait! this is a job for yield!" | |
So I wrote a pleasant little module with a function that: | |
- Takes a block which attempts to match an API object to rows in the |