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
sealed class Maybe<T> { | |
object Nothing: Maybe() | |
data class Some<T>(val value: T): Maybe<T>() | |
} |
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
public static String read(InputStream inputStream) { | |
Scanner s = new Scanner(inputStream).useDelimiter("\\A"); | |
return s.hasNext() ? s.next() : ""; | |
} |
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
module ObjectCreationMethods | |
# def make_user | |
# def make_user! | |
define User do | |
{ | |
username: 'dam5s', | |
email: '[email protected]', | |
password: 's0m3pwd', | |
password_confirmation: 's0m3pwd' | |
} |
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
call pathogen#runtime_append_all_bundles() | |
set wildmenu | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set smarttab | |
set autoindent | |
set nu |
NewerOlder