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
| module TimeZoneStateHelper | |
| STATE_TIME_ZONES = { | |
| AK: "Alaska", | |
| AL: "Central Time (US & Canada)", | |
| AR: "Central Time (US & Canada)", | |
| AZ: "Pacific Time (US & Canada)", # use the furthest time | |
| CA: "Pacific Time (US & Canada)", | |
| CO: "Mountain Time (US & Canada)", | |
| CT: "Eastern Time (US & Canada)", | |
| DC: "Eastern Time (US & Canada)", |
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
| #!/bin/bash | |
| # RELEASE NOTE FILE | |
| LOG_FILE=CHANGELOG.md | |
| TMP_LOG_FILE=CHANGELOG.tmp.md | |
| # SEEKING LABELS ON COMMIT SUBJECTS | |
| BUGS=";B" | |
| FEATURES=";F" | |
| MISC=";M" |
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
| var testString = "Partner World Dog Cat Xyelephone New. shorts apple summer a tiny" | |
| function sortDescending(a, b){ | |
| if (a > b) return -1 | |
| if (a < b) return 1 | |
| else return 0 | |
| } | |
| function sortArrayAndStringify(array, sortComparator){ |
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
| require 'simple-rss' | |
| require 'open-uri' | |
| require 'pry' | |
| require 'mechanize' | |
| require 'elasticsearch' | |
| client = Elasticsearch::Client.new log: true | |
| mechanize = Mechanize.new | |
| rss = SimpleRSS.parse open('http://www.choosechicago.com/includes/cfcs/syndication/RSS/rssManager.cfc?method=showFeed&feedType=events&e_catID=0®ionid=0&e_sdate=10-20-2015&e_edate=10-26-2015') |
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
| require 'rubygems' | |
| require 'mechanize' | |
| require 'pry' | |
| require 'nokogiri' | |
| require 'json' | |
| class FeeCheckWorker < Workers | |
| def setup_page | |
| agent = Mechanize.new |