Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Stream twitter data directly to a dataset with Fiona and Tweepy. | |
""" | |
import fiona | |
import fiona.crs | |
from tweepy.streaming import StreamListener |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 | 96.882 | |
---|---|---|
4.646 | 96.921 | |
9.293 | 96.93 | |
13.939 | 96.914 | |
18.585 | 96.896 | |
23.232 | 96.872 | |
27.878 | 96.823 | |
32.525 | 96.744 | |
37.171 | 96.665 | |
41.817 | 96.634 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smtplib, os | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEBase import MIMEBase | |
from email.MIMEText import MIMEText | |
from email import Encoders | |
import traceback | |
import textwrap | |
from datetime import datetime | |
from StringIO import StringIO |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#This script reinstalls my python/GIS environment on Maverics | |
#install homebrew | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew update | |
brew upgrade | |
#and now everything else | |
brew tap homebrew/dupes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Where is my polling place? | |
========================== | |
Simple script to call the Google Geocoder service and get a map of polling | |
places. View the locations in Google Maps by converting the outout GeoJSON to | |
KML (Use ogr2ogr or `Jason Sanford's geojson-google-maps | |
<https://github.com/JasonSanford/geojson-google-maps>`_ utility) .Note that | |
the Google TOS require that the results of the geocode are used to be viewed | |
in google maps. |