This file contains 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.daemon=true | |
org.gradle.configureondemand=true | |
org.gradle.parallel=true |
This file contains 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 CustomUncaughtExpHandler implements Thread.UncaughtExceptionHandler { | |
/** | |
* Method to handle any exception thats not handled in code | |
* | |
* @param thread | |
* @param ex | |
*/ | |
@Override | |
public void uncaughtException(Thread thread, Throwable ex) { | |
Log.e(SP_Defaults.LOGTAG, |
This file contains 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
signingConfigs { | |
release { | |
storeFile file(System.console().readLine("\n\$ Enter keystore path: ")) | |
storePassword new String(System.console().readPassword("\n\$ Enter keystore password: ")) | |
keyAlias System.console().readLine("\n\$ Enter key alias: ") | |
keyPassword new String(System.console().readPassword("\n\$ Enter key password: ")) | |
} | |
} |
This file contains 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
<style name="AppTheme" parent="@style/Theme.AppCompat.Light"> | |
... | |
<item name="navigationBarColor">#123456</item> | |
... | |
<!--Or--> | |
<item name="android:navigationBarColor" tools:targetApi="21">@android:color/white</item> | |
</style> |
This file contains 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
-assumenosideeffects class android.util.Log { | |
public static *** d(...); | |
} |
This file contains 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
// MultiExporter.jsx | |
// Version 0.1 | |
// Version 0.2 Adds PNG and EPS exports | |
// Version 0.3 Adds support for exporting at different resolutions | |
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize | |
// Version 0.5 Fixed cropping issues | |
// Version 0.6 Added inner padding mode to prevent circular bounds clipping | |
// | |
// Copyright 2013 Tom Byrne | |
// Comments or suggestions to tom@tbyrne.org |
This file contains 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
#More info at : https://help.github.com/articles/generating-ssh-keys/ | |
cat ~/.ssh/id_dsa.pub |
This file contains 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
buildTypes { | |
debug { | |
minifyEnabled false | |
applicationIdSuffix '.debug' | |
versionNameSuffix '-debug' | |
} | |
release { | |
signingConfig signingConfigs.release | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
This file contains 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
.ellipsis { | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; // IE 6+, FF 7+, Op 11+, Saf 1.3+, Chr 1+ | |
-o-text-overflow: ellipsis; // for Opera 9 & 10 | |
} |
This file contains 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
#For more info check : http://people.duke.edu/~hpgavin/gnuplot.html | |
#Install GnuPLot | |
brew install gnuplot | |
#Before ploting a graph, set the terminal into dumb mode | |
set terminal dumb | |
#To Plot a graph | |
plot cos(x+2) #for a function | |
#for a data set |
OlderNewer