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
#!/bin/bash | |
# remove old backups keeping only the latest one | |
# run this script only in your TitaniumBackup folder !!! | |
# create this folder first! | |
target=old | |
# pipe|separated|list | |
exclude="this.is.an.example.org.mozilla.firefox" | |
# | get app IDs |
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
// in your android.applicationVariants.all { variant -> | |
// or in your android.libraryVariants.all { variant -> | |
// code block put this: | |
if (variant.productFlavors[0] == null){ | |
variant.outputs[0].outputFile = new File(variant.outputs[0].outputFile.parent, | |
project.ext.ourProjectName + "_" | |
+ variant.buildType.name + "_" | |
+ android.defaultConfig.versionCode + "_" | |
+ android.defaultConfig.versionName + ".apk") | |
}else{ |
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
/* | |
* Copyright (C) 2014 Chris Banes | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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 EdgeEffect(Context context) { | |
final Resources res = context.getResources(); | |
mEdge = res.getDrawable(R.drawable.overscroll_edge); | |
mGlow = res.getDrawable(R.drawable.overscroll_glow); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |