rails new blog
cd blog
hanami new bookshelf
vim Gemfile # add `hanami`
bundle
vim bookshelf/config/environment.rb # See Note 1
📆 Jun 23-24, 2016
🌏 Web site: http://reddotrubyconf.com/ Twitter: http://twitter.com/reddotrubyconf
💁 Ping me @cheeaun on Twitter or leave a comment below if you found some awesome stuff for #rdrc2016. This gist will be updated whenever there's new stuff.
🕙 Previously, on RedDotRubyConf...
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
#!/usr/bin/env ruby | |
require 'socket' | |
require 'whois' | |
zones = %w(com ru) | |
words = %w( | |
word1 | |
word2 |
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
require 'mechanize' | |
class PapaOrder | |
SN_URL = 'https://order.papajohns.com/secure/signin/frame.html?destination=' | |
attr_reader :agent, :password, :email | |
def initialize(email, password) | |
@email, @password = email, password | |
@agent = Mechanize.new |
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
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
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
defmodule Conn do | |
def test do | |
{ok, client} = :cqerl.new_client({}) | |
{ok, result} = :cqerl.run_query(client, "SELECT * FROM demodb.users;") | |
rows = :cqerl.all_rows(result) | |
end | |
end |
- fatih/color - Make your output more fancy with different colours
- codegangsta/cli - Used to build CLI apps, and supports sub-commands
- k0kubun/go-readline - Support for GNU Readline for Golang
- howeyc/gopass - getpasswd support for Golang
NewerOlder