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
android.applicationVariants.all { variant -> | |
task ("prepareNewRelicProperties${variant.name.capitalize()}"){ | |
doLast { | |
copy { | |
from variant.buildType.debuggable ? "${project.projectDir}/src/debug/newrelic.properties" : "${project.projectDir}/src/release/newrelic.properties" | |
into "${project.projectDir}" | |
} | |
} | |
} | |
tasks.getByName("prepare${variant.name.capitalize()}Dependencies").dependsOn("prepareNewRelicProperties${variant.name.capitalize()}") |
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
# thanks to http://stackoverflow.com/questions/4981126/how-to-amend-several-commits-in-git | |
git filter-branch --env-filter 'if [ "$GIT_AUTHOR_EMAIL" = "incorrect@email" ]; then | |
GIT_AUTHOR_EMAIL=correct@email; | |
GIT_AUTHOR_NAME="Correct Name"; | |
GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL; | |
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"; fi' -- --all |
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
// http://api.openweathermap.org/data/2.5/forecast/daily?q=Moscow&mode=json&units=metric&cnt=2&lang=ru | |
public class Response { | |
public static class Forecast { | |
public static class Temp { | |
@SerializedName("day") | |
public final double day; | |
@SerializedName("night") |
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 static Matcher<View> withDrawable(final int resourceId) { | |
return new TypeSafeMatcher<View>() { | |
@Override | |
public void describeTo(Description description) { | |
description.appendText("with drawable from resource id: " + resourceId); | |
} | |
@Override | |
public boolean matchesSafely(View view) { | |
try { |
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
[user] | |
name = Alex Korovyansky | |
email = [email protected] | |
[core] | |
editor = subl -n -w | |
[push] | |
default = simple | |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
[user] | |
name = Alex Korovyansky | |
email = [email protected] | |
[core] | |
excludesfile = /Users/akorovyansky/.gitignore_global | |
editor = subl -n -w | |
[push] | |
default = simple |
NewerOlder