- Add Heroku to your Gemfile and
bundle install
. - Create your Heroku app. This will only work with their (currently-beta)
'cedar' stack, so you have to
heroku create --stack=cedar
. - Create a Procfile for your bot. This tells Heroku how to run your worker. In
our case, the bot is bot.rb, so the only line in the Procfile is
cinch: bundle exec ./bot.rb
- Commit and push to Heroku.
- You do not want a Web worker running, so
heroku scale web=0 cinch=1
. This also sets up your deployments to restart the bot.
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
Hello from WiebeTech, | |
We just received your order and we think it's just super duper that you've chosen to do business with us. | |
If you check the shipping status of your products hopefully you'll see everything is squared away and ready to go (those are called "out-the-doorsies"). Sometimes everybody wants the same thing you want at the same time you want to have it and we run out of stuff (those are called "out-of-stocksies"). If you ordered an "out-of-stocksie" it makes us sad, but then we're happy again because we know that it will soon turn into an "out-the-doorsie." | |
So after all the money and shipping twiddle bits are set to go then all the products you ordered are built skillfully by hand in a magic realm called "Production" by clever little beings called "Wiebes." The Wiebes will carefully test and format every function and characteristic of your product(s) before carefully packing it and sending it off with a smile and a wave of their little orange hands. If you want to check on the Wiebe's progre |
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
select: | |
applicants: | |
- cas_id | |
- last_name | |
- first_name | |
designations: | |
- date_locked | |
statuses: | |
- name | |
join: |
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
- defun | |
- fibonacci | |
- - n | |
- - if | |
- - or | |
- - zerop | |
- n | |
- - "=" | |
- n | |
- 1 |
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
Obliterated: | |
Google … a Relic From the Past … | |
eBay … bid right out of business … | |
Yahoo … a Sinking ship … | |
Facebook … a victim of Its own obsolescence … | |
Craigslist … blown totally out of the water … | |
Twitter … Long gone and forgotten … | |
Groupon … deader than a doornail … | |
The Next “Next Big Thing” Has Just Arrived! |
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
OFFICIAL LETTER FROM FEDERAL BUREAU OF INVESTIGATION FBI EXECUTIVE DIRECTOR FBI | |
FEDERAL BUREAU OF INVESTIGATION FBI.WASHINGTON DC. ROBERT MUELLER III. FBI | |
SEEKING TO WIRETAP INTERNET | |
ATTENTION: BENEFICIARY | |
FROM: ROBERT MUELLER III EXECUTIVE DIRECTOR FBI FEDERAL BUREAU OF INVESTIGATION | |
WASHINGTON DC. FBI SEEKING TO WIRETAP INTERNET. | |
The federal bureau of investigation (FBI).Through our intelligence monitoring |
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
def with_resource(): | |
print 'SETUP RESOURCE' | |
yield | |
print 'CLEANUP RESOURCE' | |
a = with_resource() | |
a.next() | |
a.next() |
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
.rbenv-gemsets |
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
class Writer | |
def flat_map | |
self.class.new do | |
value, log = get | |
new_value, new_log = yield value | |
[new_value, log + new_log] | |
end | |
end | |
def map |
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
/project | |
/target |
OlderNewer