View main.go
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
package main | |
import ( | |
"os" | |
"fmt" | |
"encoding/csv" | |
"io" | |
"time" | |
"strconv" | |
) |
View gist:3479ba8f0dc6c2397fbc
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
<!-- LOL --> | |
<!-- http://semantic-ui.com/elements/button.html --> | |
<button class="ui button"> | |
Follow | |
</button> | |
<!-- http://www.getmdl.io/components/index.html#buttons-section --> | |
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect"> | |
Button |
View ruby_and_scala
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
# Ruby | |
class Example | |
def initialize(n,d) | |
raise ArgumentError if d == 0 | |
@n, @b = n, d | |
end | |
end | |
// Scala | |
class Example(n: Int, d: Int) { |
View gist:965601
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
# random hexadecimal string. | |
p SecureRandom.hex(10) # => "52750b30ffbc7de3b362" | |
p SecureRandom.hex(10) # => "92b15d6c8dc4beb5f559" | |
p SecureRandom.hex(11) # => "6aca1b5c58e4863e6b81b8" | |
p SecureRandom.hex(12) # => "94b2fff3e7fd9b9c391a2306" | |
p SecureRandom.hex(13) # => "39b290146bea6ce975c37cfc23" | |
... | |
# random base64 string. | |
p SecureRandom.base64(10) # => "EcmTPZwWRAozdA==" |