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 Aug 8, 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 Jul 11, 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 Aug 18, 2019
The introduction to Reactive Programming you've been missing
TSiege / The Technical Interview Cheat
Last active Aug 18, 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

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
dodyg / gist:5823184
Last active Aug 6, 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.