Yusuke ENDOH writes:
Periodically when fetching web pages using open-uri, he notices that many different kinds of exceptions can be raised.
So far, he’s experienced these below:
-
Errno::ETIMEDOUT
gem 'omniauth' | |
gem 'omniauth-facebook' | |
gem 'clearance' |
#!/usr/bin/env ruby | |
tagname = ARGV.pop | |
def prompt(*args) | |
print(*args) | |
gets.chomp | |
end | |
if tagname.nil? |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
#!/bin/sh | |
set -e | |
CLI="my-app" | |
# if a DATABASE_URL is properly configured, then we can run migrations and web process | |
if $CLI config:get DATABASE_URL ; then | |
$CLI run rake db:migrate | |
$CLI scale web=1 |
{ | |
"red": { | |
"50": "#ffebee", | |
"100": "#ffcdd2", | |
"200": "#ef9a9a", | |
"300": "#e57373", | |
"400": "#ef5350", | |
"500": "#f44336", | |
"600": "#e53935", | |
"700": "#d32f2f", |