Skip to content

Instantly share code, notes, and snippets.


Dayan Ruben Gonzalez dayanruben

Block or report user

Report or block dayanruben

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rharter / config.yaml
Created May 24, 2018
Example Circle CI config file
View config.yaml
version: 2.0
defaults: &defaults
- image: menny/android_ndk:latest
working_directory: ~/pigment
_JAVA_OPTIONS: "-Xmx1400m -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -XX:ParallelGCThreads=2 -Djava.util.concurrent.ForkJoinPool.common.parallelism=2"
TERM: dumb
gpeal / build.gradle
Created May 22, 2018
Airbnb Gradle Flavors
View build.gradle
apply from: './flavors.gradle'
android {
buildTypes {
productFlavors {
project.flavors.each { flavor, config ->
"$flavor" {
dimension 'scope'
if (flavor != 'full') {
ArthurNagy / RoundedBottomSheetDialogFragment.kt
Last active Sep 24, 2019
Rounded modal bottom sheet as seen in new Google products(Tasks, News, etc.), described in this article:
View RoundedBottomSheetDialogFragment.kt
package com.your.package
import android.os.Bundle
import com.your.package.R
* BottomSheetDialog fragment that uses a custom
raulraja / Tagless.kt
Last active Aug 27, 2018
Tagless in Kotlin with Arrow and manual DI
View Tagless.kt
import arrow.Kind
import arrow.core.Option
import arrow.core.Try
import arrow.core.functor
import arrow.effects.IO
import arrow.effects.fix
import arrow.effects.functor
import arrow.typeclasses.Functor
/* algebras */
View BetterWayToLaunchActivities.kt
@file:Suppress("unused", "FunctionName", "IllegalIdentifier")
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.os.Bundle
* The best way to launch yourself an activity. Your implementation should enable the following api:
adavis / CommonExtensions.kt
Last active Aug 25, 2019
Common Android Extensions in Kotlin
View CommonExtensions.kt
fun View.visible() {
visibility = View.VISIBLE
fun View.invisible() {
visibility = View.INVISIBLE
fun View.gone() {
visibility = View.GONE
staltz /
Last active Oct 15, 2019
The introduction to Reactive Programming you've been missing
TSiege / The Technical Interview Cheat
Last active Oct 15, 2019
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat


I have moved this over to the Tech Interview Cheat Sheet Repo since a gist is too difficult to maintain as an open source endevaor and there is no way to version it. I have updated below, but I will not be able to keep this one up to date so please checkout the repo instead. The below is just for some preservation for those who stumble across here.


dodyg / gist:5823184
Last active Oct 5, 2019
Kotlin Programming Language Cheat Sheet Part 1
View gist:5823184


Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

You can’t perform that action at this time.