Skip to content

Instantly share code, notes, and snippets.

@drobyshys
drobyshys / App.java
Last active April 3, 2018 09:57
mixpanel twick
public class BaseSalonyApp extends Application {
private static Tweak<Boolean> canSkipSignUp = MixpanelAPI.booleanTweak("Can skip", false);
public void onCreate() {
super.onCreate
new MixpanelTracker(this);
}
public static boolean canSkipSignUp() {
package com.example.kotlin
import android.app.Dialog
import android.support.design.widget.BottomSheetBehavior
import android.support.design.widget.BottomSheetDialogFragment
import android.support.design.widget.CoordinatorLayout
import android.util.Log
import android.view.View
import android.widget.TextView
import com.example.drobysh.kotlinrxjava.R
adb exec-out run-as com.package cat files/default.realm > Downloads/baza.realm
@drobyshys
drobyshys / build.gradle
Created April 7, 2016 12:13 — forked from mychaelstyle/build.gradle
Example Gradle build Java with FindBugs and PMD and CPD
apply plugin: "java"
apply plugin: "eclipse"
apply plugin: "maven"
apply plugin: "findbugs"
apply plugin: "pmd"
def defaultEncoding = 'UTF-8'
[compileJava, compileTestJava]*.options*.encoding = defaultEncoding
sourceCompatibility = 1.7
@drobyshys
drobyshys / git st
Last active February 10, 2017 14:33
[alias]
co = checkout
b = branch
st = status
lg = log --oneline --graph --decorate
l = !git --no-pager log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -30
ll = !git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
la = !git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all
rb = rebase
rba = rebase --abort