Shooting Signatures were designed to give an at-a-glance view of an NBA player's shooting performance. They were developed by Peter Beshai (@pbesh) as part of Buckets, an interactive NBA shot visualization tool.
| module RIDB | |
| # A set of client classes for new RIDB API | |
| # https://ridb.recreation.gov/api/v1 | |
| # http://ridb-dev.nsitellc.com/docs/api/v1/ | |
| # Usage: | |
| # > $ridb = RIDB::Client.new(ENV['RIDB_API_KEY'], debug: true) | |
| # Returns a list of organization items | |
| # > $ridb.organizations.list.items |
| var RIDB = (function(RIDB) { | |
| 'use strict'; | |
| var _baseurl = "https://ridb-dev.nsitellc.com/api/v1"; | |
| var _apikey; | |
| function showResponse(response){ | |
| console.log(response); | |
| } |
| var pathLayer = L.geoJson(geojsonData, { | |
| onEachFeature: function(feature, layer) { | |
| var buffered = turf.buffer(feature,0.01,'kilometers'); | |
| var hoverZone = L.geoJson(buffered).addTo(someMap); | |
| hoverZone.on('mouseover', function() { | |
| // do something | |
| }); | |
| hoverZone.on('mouseout', function() { | |
| // do something else | |
| }); |
| require 'multi_json' | |
| MultiJson.use :yajl | |
| unless Rails.env.production? | |
| MultiJson.dump_options = {:pretty=>true} | |
| end |
| namespace :fastly do | |
| desc "set fastly cors headers to fix chrome/firefox font loading issues" | |
| task allow_cors: :environment do | |
| # check for the Cors Allow header | |
| versions = Yajl.load(Excon.get("https://api.fastly.com/service/#{ENV['FASTLY_SERVICE_ID']}/version", | |
| :headers => {'Fastly-Key'=>ENV['FASTLY_API_KEY']}).body) | |
| last_version = versions.last['number'] |