- Exercise 01: http://play.golang.org/p/53KrXdkz6v
- Exercise 02: http://play.golang.org/p/egzevZM1Js
- Exercise 03: http://play.golang.org/p/epBohpa_35
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise 01: http://play.golang.org/p/53KrXdkz6v
- Exercise 02: http://play.golang.org/p/egzevZM1Js
- Exercise 03: http://play.golang.org/p/epBohpa_35
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise 01: http://play.golang.org/p/53KrXdkz6v
- Exercise 02: http://play.golang.org/p/egzevZM1Js
- Exercise 03: http://play.golang.org/p/epBohpa_35
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise 01: http://play.golang.org/p/53KrXdkz6v
- Exercise 02: http://play.golang.org/p/egzevZM1Js
- Exercise 03: http://play.golang.org/p/epBohpa_35
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise 01: http://play.golang.org/p/53KrXdkz6v
- Exercise 02: http://play.golang.org/p/egzevZM1Js
- Exercise 03: http://play.golang.org/p/epBohpa_35
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise 01: http://play.golang.org/p/53KrXdkz6v
- Exercise 02: http://play.golang.org/p/egzevZM1Js
- Exercise 03: http://play.golang.org/p/epBohpa_35
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
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
screen -X eval 'hardstatus alwayslastline "%{r}[%{w}%n%{r}]"' # this sets the hardstatus to [0], where 0 is the number of window |
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 'rubygems' | |
require 'prowly' | |
Prowly.notify do |n| | |
n.apikey = "your_apikey_here" | |
n.priority = Prowly::Notification::Priority::MODERATE | |
n.application = "My Site" | |
n.event = "Alert" | |
n.description = "Something went wrong!" | |
end |
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 'rubygems' | |
require 'active_record' | |
require 'active_record/schema_dumper' | |
ActiveRecord::Base.establish_connection( | |
:adapter => "mysql", | |
:host => "localhost", | |
:username => "root", | |
:password => "pwd", | |
:database => "test" |
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 Foo | |
def splat(bar, baz) | |
[bar, baz] | |
end | |
end | |
class Bar < Foo | |
def splat(*) | |
#do whatever you want here, like logging, etc | |
super |
OlderNewer