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
buildscript { | |
repositories { | |
jcenter() | |
maven { url 'http://dl.bintray.com/sloy/maven'} //<- only needed while jcenter refresh to the new version | |
} | |
dependencies { | |
classpath 'com.sloydev:dexcountprettify-plugin:0.1.2' | |
} | |
} |
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
android { | |
... | |
signingConfigs { | |
release { | |
storeFile file('../certs/release.keystore') | |
def (releaseKeystorePassword, releaseKeyAlias, releaseKeyPassword) = signingConfig() | |
storePassword releaseKeystorePassword | |
keyAlias releaseKeyAlias | |
keyPassword releaseKeyPassword |
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
#coding=utf-8 | |
""" | |
Por: Rafa Vázquez | |
http://sloydev.com/ | |
Este script genera una animación gif a partir de un archivo de vídeo, colocando opcionalmente un fondo en cada frame. | |
Está pensado para convertir los vídeos obtenidos en Android mediante 'adb shell screenrecord' o con la herramienta de Android Studio. | |
Un ejemplo del resultado puede verse en http://i.imgur.com/Opu5aG3.gif |
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 AutocompleteViewActions { | |
public static ViewAction replaceAutocomplete(@Nonnull String stringToBeSet) { | |
return actionWithAssertions(new ReplaceAutocompleteTextAction(stringToBeSet)); | |
} | |
/** | |
* This is based on {@link ReplaceTextAction} | |
* with modifications thanks to "http://www.grokkingandroid.com/how-androids-autocompletetextview-nearly-drove-me-nuts/". | |
* <p> |
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
$ while sleep 1; do adb shell dumpsys activity service GcmService --endpoints my.package.name | grep "Pending:" -A 20; done |
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 NetworkEndpointPreference extends StringPreference { | |
@Inject | |
public NetworkEndpointPreference(SharedPreferences preferences) { | |
super(preferences, "debug_network_endpoint_url", DebugApiEndpoints.PROD.getUrl()); | |
} | |
} |
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
Object.prototype.potato = function(){ | |
console.log('MMMMMMMMMMMMMMMMMMMMMMMMMMMMMNmdhysssssyhhmNMMMMMMMMMMMMMMMMMMMMMMMMMM','MMMMMMMMMMMMMMMMMMMMMMMmy+:.```.--:::::--.```.:+ydMMMMMMMMMMMMMMMMMMMM','MMMMMMMMMMMMMMMMMMMMh+. .:+shddhhhyyyyyhhhddhs+:. ./hNMMMMMMMMMMMMMMMM','MMMMMMMMMMMMMMMMMMy- .+hdhysoo++++++++++++++ooyhdh+. .sNMMMMMMMMMMMMMM','MMMMMMMMMMMMMMMMd: .sdho+++ssso++++++++++++++++++oydy- -dMMMMMMMMMMMMM','MMMMMMMMMMMMMMMy` +dho+++++ooso++++++++++++++++++oooym+ .dMMMMMMMMMMMM','MMMMMMMMMMMMMMs``sms++++++++++++++++++++++++++++osss+sm+ .NMMMMMMMMMMM','MMMMMMMMMMMMMh``ymo++sso++++++++++++++++++++++++++++++hm- oMMMMMMMMMMM','MMMMMMMMMMMMm` oms+++ooo++++++++++++++++++++++++++++++oms .NMMMMMMMMMM','MMMMMMMMMMMM: /my++++++++++++++++++++++++++++++++++++++hd` dMMMMMMMMMM','MMMMMMMMMMMs .dh+++++++++oyhhyo+++++++++++++++++ohhhyo+ym- sMMMMMMMMMM','MMMMMMMMMMm` smo++++++++ommmmmmo+++++++++++++++ommmmmd+om+ :MMMMMMMMMM','MMMMMMMMMM/ :my++++++++++dmmmmd+++++ssyyyyyso++odmmmmh++dh `dMMMMMMMMM','MMMMMMMMMh``hd++++++ |
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
import kotlin.properties.ReadWriteProperty | |
import kotlin.reflect.KProperty | |
/** | |
* With this delegate, a property will only return it's value once. Subsequent queries will return the default value. | |
*/ | |
class GetAndForgetProperty<in R, T>(private val defaultValue: T) : ReadWriteProperty<R, T> { | |
companion object { | |
fun <T> getAndForget(defaultValue: T): GetAndForgetProperty<Any, T> { |
OlderNewer