Skip to content

Instantly share code, notes, and snippets.

View thescientist13's full-sized avatar
🎯
The right time is always now

Owen Buckley thescientist13

🎯
The right time is always now
View GitHub Profile
@cgmartin
cgmartin / datepicker.decorator.js
Last active May 21, 2018 21:42
Send an event to refresh view of ui-bootstrap datepicker
/**
* Decorates the ui-bootstrap datepicker directive's controller to allow
* refreshing the datepicker view (and rerunning invalid dates function)
* upon an event trigger: `$scope.$broadcast('refreshDatepickers');`
*
* Works with inline and popup. Include this after `ui.bootstrap` js
*/
angular.module('ui.bootstrap.datepicker')
.config(function($provide) {
$provide.decorator('datepickerDirective', function($delegate) {
@paulopperman
paulopperman / get_streetview_image.py
Last active January 4, 2018 16:11
get streetview images of points in a geojson file
import requests
from PIL import Image
from io import BytesIO
import os
import pandas as pd
# get crosswalk dataset
newport_crossings_url = 'https://raw.githubusercontent.com/NewportDataPortal/sidewalk-map/development/npt-sidewalk-street-intersections.geojson'
crossing_response = requests.get(newport_crossings_url)
crossing_json = crossing_response.json()