(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
import mechanize | |
from bs4 import BeautifulSoup | |
from datetime import datetime | |
TGT_DATE = 'MONTH DAY, YEAR' #i.e. 'September 30, 2014' | |
OFFICE_ID = '503' # officeid for SF DMV. See HTML code for other office ids | |
NUMBERITEMS = 'Num' # number of tasks for dmv; should be between 1-3 | |
FIRSTNAME = 'FIRST_NAME' | |
LASTNAME = 'LAST_NAME' | |
# Number looks like (TELAREA) TELPREFIX-TELSUFFIX |
# Log into the AWS console | |
# Select S3, and check out the properties on the bucket you want to change | |
# Expand permissions and click "Edit CORS Configuration" | |
# paste the thing below, edit in the AllowedOrigin things to be your url/s and you should be done | |
# make sure that you set this up before hitting your CloudFront distribution because caching will fuck you :( | |
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin> |
// includes bindings for fetching/fetched | |
var PaginatedCollection = Backbone.Collection.extend({ | |
initialize: function() { | |
_.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
typeof(options) != 'undefined' || (options = {}); | |
this.page = 1; | |
typeof(this.perPage) != 'undefined' || (this.perPage = 10); | |
}, | |
fetch: function(options) { |