01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140
Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.
[Laughter]
package main | |
import ( | |
"net/http" | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
) |
package main | |
import ( | |
"net/http" | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
) |
require 'json' | |
require 'net/http' | |
require 'uri' | |
require 'rbconfig' | |
require 'io/console' | |
puts "Enter Username:" | |
@username = gets.chomp | |
puts "Enter Password (input will be hidden):" | |
@password = STDIN.noecho(&:gets).chomp |
bundle install
.heroku create --stack=cedar
.cinch: bundle exec ./bot.rb
heroku scale web=0 cinch=1
. This
also sets up your deployments to restart the bot.