Assuming I'm starting on a Mac of some kind. Here are things to install:
- XCode Command Line Tools (this may be pre-installed on OSX)
- Sublime Text 2
- homebrew
- QGIS
- Postgres.app
- Node.js or io.js
- boot2docker
- VirtualBox
# all forms must be the same height. each line in a form must be the same width, but each form's width may differ. blank lines are permitted at the top and bottom of each form. | |
A = """ | |
XXXX | |
X X | |
XXXX | |
X X | |
X X | |
""" | |
B = """ | |
XXX |
#!/usr/bin/env python | |
from pytube import YouTube | |
VIDEOS = [ | |
# 'QuL6f5vmcWs', | |
# '8u_6whomrCo', | |
# 'kZwCF-LAnB8', | |
# 'lCyhZezuY9Y', | |
# 't8vnr18m_CI', |
Assuming I'm starting on a Mac of some kind. Here are things to install:
require 'rubygems' | |
require 'yajl/json_gem' | |
module AP | |
# a = AP::ParseData.new('/file.txt') | |
class ParseData | |
def initialize(file) | |
@file = file | |
@ap_scratch = [] | |
@final_results = [] |
///////// | |
// | |
// Things you need in place to use this: | |
// - have loaded jquery | |
// - have called your google map "map" and declared it globally | |
// such as: var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); | |
// - have <div id="address_module"></div> where you want your address box | |
// - call addressBoxSetup(); in your $(document).ready(function(){ ... }); | |
// | |
// |
import requests | |
import csv | |
from pyquery import PyQuery as pq | |
f = open('strike_all_bills.csv', 'w') | |
wr = csv.DictWriter(f, ['billno']) | |
req = requests.get('http://www.azleg.gov/StrikeEverything.asp') | |
html = pq(req.text) | |
rows = html('tr.TableHeaderBackground').siblings() |
import urllib2 | |
# Python port of this Ruby script: http://pastebin.com/VHnSRs3t | |
# Bring in two helper functions from our code library. | |
from scraper_helper import get_twitter_user, get_user_tweets | |
# URL for a file with a list of Congress members' Twitter names. | |
csv_url = "http://nottwitter.danwin.com.s3.amazonaws.com/cmembers.txt" | |
# Name of a file (on your hard drive) to hold the script results. |
#ADRIA, F. | |
"We didn't create dishes. We create preparations to create many dishes." - Ferran Adria | |
#BOURDAIN, A. | |
"This bus makes many stops. I have no expectation that you will like all of them." - @Bourdain | |
#BOYER, B. | |
"Election maps lie." - @brianboyer | |
"Who are our users? What do they need?" - @brianboyer |
<!DOCTYPE html> | |
<!-- Helpful things to keep in your <head/> | |
// Brian Blakely, 360i | |
// http://twitter.com/brianblakely/ | |
--> | |
<head> | |
<!-- According to Heather Champ, former community manager at flickr, | |
you should not allow search engines to index your "Contact Us" |
import React, { Component } from 'react'; | |
import { bindActionCreators } from 'redux'; | |
import { connect } from 'react-redux'; | |
import * as Actions from './action'; | |
const mapStateToProps = ({ loaded, loading, error, data }) = ({ loaded, loading, error, data }); | |
const mapDispatchToProps = dispatch => ({ action: bindActionCreators(Actions, dispatch) }); | |
export class MyComponent extends Component { | |
load = _ => this.props.action.load(this.props.id); |