Method | Result |
---|
This file contains hidden or 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
object ViewExt{ | |
fun View.setDebounceClickListener( | |
duration: Duration = 300.milliseconds, | |
action: (View) -> Unit | |
) { | |
this.setDebounceClickListener(duration.inWholeMilliseconds, action) | |
} | |
private fun View.setDebounceClickListener( | |
timeInMillis: Long, | |
action: (View) -> Unit |
This file contains hidden or 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
org.gradle.jvmargs=-Xms8g -Xmx16g -XX:+UseG1GC -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=1g -XX:+TieredCompilation -XX:+UseStringDeduplication -XX:ParallelGCThreads=8 -XX:+AggressiveOpts -Dfile.encoding=UTF-8 | |
org.gradle.parallel=true | |
org.gradle.configureondemand=true | |
org.gradle.configuration-cache=true | |
org.gradle.configuration-cache.problems=warn | |
org.gradle.caching=true | |
org.gradle.caching.debug=false | |
org.gradle.daemon.idletimeout=172800000 | |
org.gradle.continuous.quietperiod=30 | |
android.useAndroidX=true |
This file contains hidden or 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
#Idea VM options for Devesh Mittal's M3MAX 36 Gig, which override idea.properties | |
-Xms8g -Xmx16g -XX:+UseG1GC -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=1g -XX:+TieredCompilation -XX:+UseStringDeduplication -XX:ParallelGCThreads=8 -XX:+AggressiveOpts |
This file contains hidden or 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
import json | |
import re | |
merge_json = open("mergedcontainers.json").read() | |
data = json.loads(merge_json) | |
dict_final_json = {} | |
dict_final_json['parameters']={} | |
for (key, value) in data.items(): | |
def convert(obj): |
This file contains hidden or 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
Last login: Sat Mar 26 03:07:00 on ttys003 | |
Deveshs-MacBook-Pro:~ devesh$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 7766 100 7766 0 0 1348 0 0:00:05 0:00:05 --:--:-- 1836 | |
=> Downloading nvm from git to '/Users/devesh/.nvm' | |
=> Cloning into '/Users/devesh/.nvm'... | |
remote: Counting objects: 4426, done. | |
remote: Total 4426 (delta 0), reused 0 (delta 0), pack-reused 4426 | |
Receiving objects: 100% (4426/4426), 1.11 MiB | 525.00 KiB/s, done. |
This file contains hidden or 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 class FlowLayout extends ViewGroup { | |
public static final int HORIZONTAL = 0; | |
public static final int VERTICAL = 1; | |
private int horizontalSpacing = 0; | |
private int verticalSpacing = 0; | |
private int orientation = 0; | |
private boolean debugDraw = false; | |
public FlowLayout(Context context) { |
This file contains hidden or 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 class FlowLayout extends ViewGroup { | |
public static final int HORIZONTAL = 0; | |
public static final int VERTICAL = 1; | |
private int horizontalSpacing = 0; | |
private int verticalSpacing = 0; | |
private int orientation = 0; | |
private boolean debugDraw = false; |
This file contains hidden or 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
//BasePresenter.java | |
public interface BasePresenter<V extends BaseView> { | |
/** | |
* Set or attach the view to this presenter | |
*/ | |
public void attachView(V view); | |
/** | |
* Will be called if the view has been destroyed. Typically this method will |
This file contains hidden or 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
//BasePresenter.java | |
public interface BasePresenter<V extends BaseView> { | |
/** | |
* Set or attach the view to this presenter | |
*/ | |
public void attachView(V view); | |
/** | |
* Will be called if the view has been destroyed. Typically this method will |
NewerOlder