- Most of this shortcuts are applicable to Android Studio.
- Two of the most useful shortcuts utilize the Fn (function) keys. It is therefore recommended that you enable the "Use all F1, F2, etc. keys as standard function keys" option [System Preferences > Keyboard].
- Be sure to enable the Mac OS X 10.5+ keymap in Android Studio [Preferences > Keymap].
- A fairly complete shortcut list can be found here.
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
Change default language | |
chrome://chrome/settings/languages | |
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 static byte[] generateByteArrayProfileImage(Context context, Uri uri) | |
throws ExecutionException, InterruptedException { | |
int width = Constantes.PROFILE_IMAGE_SIZE_WIDTH; | |
int height = Constantes.PROFILE_IMAGE_SIZE_HEIGHT; | |
return Glide.with(context.getApplicationContext()) | |
.load(uri) | |
.asBitmap() | |
.toBytes(Bitmap.CompressFormat.JPEG, 70) |
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
__ __ _ _ _ | |
| \/ (_) | (_) | |
| \ / |_| | __ _ _ __ _ _ _ __ ___ _ ___ ___ | |
| |\/| | | |/ _` | '_ \| | | | '_ \ / __| |/ _ \/ __| | |
| | | | | | (_| | | | | |_| | | | | (__| | (_) \__ \ | |
|_| |_|_|_|\__,_|_| |_|\__,_|_| |_|\___|_|\___/|___/ | |
____ _ _ | |
| _ \ | | | | |
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 | |
echo "Stoping MA containers" | |
docker stop $(docker ps | grep "allmaweb_*" | awk '{print $1}') | |
echo "Deleting MA containers" | |
docker rmi --force $(docker images | grep "allmaweb_*" | awk '{print $3}') | |
echo "Rebuilding MA containers" | |
docker-compose up --build |
I hereby claim:
- I am alexsimo on github.
- I am alexsimo (https://keybase.io/alexsimo) on keybase.
- I have a public key whose fingerprint is DC7B D085 534D C831 694A AB78 DFBC 7BCD 2C9B 472F
To claim this, I am signing this object:
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
_ _ _ | |
(_) | (_) | |
_ __ ___ _| | __ _ _ __ _ _ _ __ ___ _ ___ ___ | |
| '_ ` _ \| | |/ _` | '_ \| | | | '_ \ / __| |/ _ \/ __| | |
| | | | | | | | (_| | | | | |_| | | | | (__| | (_) \__ \ | |
|_| |_| |_|_|_|\__,_|_| |_|\__,_|_| |_|\___|_|\___/|___/ | |
_ _ _ | |
| | (_) | | | |
__ _ _ __ __| |_ __ ___ _ __| | |
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
# enable 32bit architecture | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
# install some required packages | |
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 |
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
package com.milanuncios.milanunciosandroid.common.remoteconfig; | |
import com.alexsimo.toolbelt.optional.Optional; | |
import com.google.firebase.remoteconfig.FirebaseRemoteConfig; | |
import com.google.firebase.remoteconfig.FirebaseRemoteConfigSettings; | |
import com.milanuncios.milanunciosandroid.BuildConfig; | |
import java.util.Map; | |
import rx.AsyncEmitter; | |
import rx.Observable; |
NewerOlder