Skip to content

Instantly share code, notes, and snippets.

View onimur's full-sized avatar
👽
🚀🐬🎒🌌...

Murillo Comino onimur

👽
🚀🐬🎒🌌...
  • São Paulo, Brazil
View GitHub Profile
@falcucci
falcucci / how-to-changelog.md
Last active July 3, 2020 02:20
Step by step instructions to generate your changelog automatically.

How to automate your changelog?

First of all, it requires Ruby v2.4.2+ to run.

Said that, install the follow dependencies:

github_changelog_generator

$ [sudo] gem install github_changelog_generator
@elizarov
elizarov / Result.kt
Last active June 16, 2020 17:04
Result for Kotlin
class Result<T> private constructor(private val result: Any?) {
// discovery
val isFailure: Boolean get() = result is Failure
val isSuccess: Boolean get() = result !is Failure
// value retrieval
fun get(): T =
if (result is Failure) throw result.exception