This is a list of Jetbrains IDE shortcuts I use everyday.
Comments welcome! Tell me your favorites.
// Add a new configuration | |
configurations { | |
fortify { extendsFrom compile } | |
} | |
// pull in the fortify libs for the new configuration | |
dependencies { | |
fortify 'com.fortify:sourceanalyzer:3.90' | |
} |
def getReleasePath() { | |
//Define RELEASE_PATH anywhere(in properties file) and your apk + mapping file will be copied there. | |
return hasProperty('RELEASE_PATH') ? RELEASE_PATH : "${project.rootDir}\\Release" | |
} | |
android.applicationVariants.all { variant -> | |
//Mapping file for proguard path for each variant | |
def mappingFile = variant.variantData.mappingFile |
/** | |
* Sorts an array and allows multiple sorting criteria. | |
* | |
* It applies the Schwartzian transform: | |
* https://en.wikipedia.org/wiki/Schwartzian_transform | |
* | |
* Author: David Rivera | |
* Github: https://github.com/jherax | |
* | |
* You can fork this project on github: |
public static class ExampleViewHolder extends RecyclerView.ViewHolder | |
implements View.OnClickListener { | |
private int originalHeight = 0; | |
private boolean isViewExpanded = false; | |
private YourCustomView yourCustomView | |
public ExampleViewHolder(View v) { | |
super(v); | |
v.setOnClickListener(this); |
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Handle History Mode and custom 404/500" stopProcessing="true"> | |
<match url="(.*)" /> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> |
git archive --format zip --output /full/path/to/zipfile.zip master |
.table { | |
width: 100%; | |
max-width: 100%; | |
margin-bottom: 1rem; | |
} | |
.table th, | |
.table td { | |
padding: 0.75rem; | |
vertical-align: top; |
*.caesarscasino.com | |
*.credit24.com | |
*.credit24.com.au | |
*.creditea.com | |
*.fashionette.de | |
*.hapipozyczki.pl | |
*.ideafinancial.com | |
*.mohegansuncasino.com | |
*.online-metrix.net | |
*.qa.threatmetrix.com |
Put this on your wp-config.php
/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');