This file contains hidden or 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
| Common Abbreviations and Terms | |
| Dog Run: An open field at the edge of Rock Creek Park at the north end of Ridge Rd and Military Rd, on Google Maps as Picnic Area 13: https://goo.gl/maps/UhFkFBe7vza4tZxv8 | |
| EPP: East Potomac Park | |
| Equitation Field: An area in Rock Creek Park along Ridge Rd, marked in Google Maps as “Horse Arena": https://goo.gl/maps/jotJyBF1nmHhTJQC6 | |
| Hains (or Hains Point): At the confluence of the Potomac and Anacostia. | |
| KAG: Abbr for Kenilworth Aquatic Gardens | |
| Kenilworth Aquatic Gardens: Go here and find out. | |
| Kenilworth Park: Open field near KAG. Park along Deane Ave NW ( https://goo.gl/maps/hTh3d7VtGqWXnwEp6) or if gate closed, then on Anacostia Ave (https://goo.gl/maps/7m8YKKDexRPmPz52A). | |
| KP: Abbr for Kenilworth Park. |
This file contains hidden or 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
| /* | |
| This script will create a database called ebirddb with a table called ebird. | |
| It will import the standard eBird export format file, as specified by `ebird_export_path` below into | |
| the new table. Then it will create some indexes and geo points. Customize to suit. | |
| */ | |
| -- Set the desired tablespace, if you want, to put it on a drive with room. Skip this if desired. | |
| SET default_tablespace = d_space; | |
| \set ON_ERROR_STOP on |
This file contains hidden or 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
| # Sample database table to use to store ExactTarget credentials. | |
| create_table "vestorly_marketing_cloud_accounts", force: :cascade do |t| | |
| t.string "exacttarget_user_id", limit: 256, null: false | |
| t.string "exacttarget_user_email", limit: 256 | |
| t.string "exacttarget_internal_oauth_token", limit: 512 | |
| t.string "exacttarget_oauth_token", limit: 512 | |
| t.string "exacttarget_refresh_token", limit: 512 | |
| t.datetime "exacttarget_token_expiration_date" | |
| end |
This file contains hidden or 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
| // Format javascript number as an actually-readable string | |
| // using different d3.formats for different magnitudes. | |
| // If it's NaN or otherwise not a number (ie a string), pass it through. | |
| // For instance: | |
| // 0.0000103 -> 10.3µ | |
| // 0.000103 -> 0.000103 | |
| // 0.103 -> 0.103 | |
| // 10.34 -> 10.3 | |
| // 1034 -> 1,034 | |
| // 1034.1 -> 1,034.1 |
This file contains hidden or 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
| def incremental_map_reduce( | |
| map_f, | |
| reduce_f, | |
| db, | |
| source_table_name, | |
| target_table_name, | |
| source_queued_date_field_name, | |
| counter_table_name = "IncrementalMRCounters", | |
| counter_key = None, | |
| max_datetime = None, |