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:
| =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 |
| # 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 '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 |
| [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 |
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:
| // 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 | |
| } |
Sarah's slides are available here.
The speaker was Sarah Allen (ultrasaurus), a returning Presidential Innovation Fellow (PIF) who was at the Smithsonian Institution. Sarah covered a lot about her experiences as a PIF generally, but also had one big point about the technology/government divide:
In her view, a large majority of government web projects are fundamentally CMS systems with a few customizations specific to the project. When she got to DC, she didn't want to use PHP, but -- precisely because Ruby doesn't have any well-supported, "clear winner" CMSs -- she couldn't justify rebuilding a lot of the functionality that Wordpress or Drupal give you out-of-the-box.
While there are a bunch of Ruby CMSs ( https://www.ruby-toolbox.com/categories/content_management_systems ) there's nothing at the point of being a clear winner with a strong commun
| <!-- Drag and drop based from @remy's HTML5 demos: https://github.com/remy/html5demos --> | |
| <title>File API</title> | |
| <style> | |
| #holder { border: 10px dashed #ccc; width: 300px; height: 300px; margin: 20px auto;} | |
| #holder.hover { border: 10px dashed #333; } | |
| </style> | |
| <article> |