Skip to content

Instantly share code, notes, and snippets.

View alxsimo's full-sized avatar
💙
Loving what I do

Alex Simonescu alxsimo

💙
Loving what I do
View GitHub Profile
@alxsimo
alxsimo / backend_ma
Last active October 23, 2019 19:58
Backend developer para Milanuncios
__ __ _ _ _
| \/ (_) | (_)
| \ / |_| | __ _ _ __ _ _ _ __ ___ _ ___ ___
| |\/| | | |/ _` | '_ \| | | | '_ \ / __| |/ _ \/ __|
| | | | | | (_| | | | | |_| | | | | (__| | (_) \__ \
|_| |_|_|_|\__,_|_| |_|\__,_|_| |_|\___|_|\___/|___/
____ _ _
| _ \ | | | |
@alxsimo
alxsimo / job_front.md
Last active February 8, 2018 08:26
Frontend at Milanuncios

image




En Milanuncios.com buscamos Frontend Developer con conocimientos de React.JS que se se una al equipo y sea participe en la refactorizacion del portal web.

Algunos requisitos:

  • Damos por hecho que pilotas de React.JS
  • Buenas practicas de desarrollo de software: SOLID, GRASP, etc.
@alxsimo
alxsimo / keybase.md
Created June 24, 2017 12:32
keybase.md

Keybase proof

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:

@alxsimo
alxsimo / job_android
Last active June 22, 2017 11:48
[Oferta Trabajo] Android Developer en Milanuncios / Schibsted
_ _ _
(_) | (_)
_ __ ___ _| | __ _ _ __ _ _ _ __ ___ _ ___ ___
| '_ ` _ \| | |/ _` | '_ \| | | | '_ \ / __| |/ _ \/ __|
| | | | | | | | (_| | | | | |_| | | | | (__| | (_) \__ \
|_| |_| |_|_|_|\__,_|_| |_|\__,_|_| |_|\___|_|\___/|___/
_ _ _
| | (_) | |
__ _ _ __ __| |_ __ ___ _ __| |
@alxsimo
alxsimo / clear_containers.sh
Created June 6, 2017 13:37
[Docker] Clear all docker images and rebuild
#!/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
@alxsimo
alxsimo / RxFirebaseRemoteConfig.java
Last active December 15, 2016 16:42
[Rx] RxFirebaseRemoteConfig
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;
@alxsimo
alxsimo / intellij_shortcuts.md
Last active April 23, 2021 06:28 — forked from stkent/android_studio_shortcuts.md
IntelliJ Shortcuts (Mac)

IntelliJ Shortcuts (Mac)

Notes:

  • 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.

Useful symbols:

@alxsimo
alxsimo / shrug.js
Created April 27, 2016 07:40
[Bookmarklet] Shrug for your browser
javascript:(function()%7Bfunction copyToClipboard(text) %7Bwindow.prompt("Copy to clipboard%3A Ctrl%2BC%2C Enter"%2C text)%3B%7DcopyToClipboard("¯%5C%5C_(ツ)_%2F¯")%7D)()
@alxsimo
alxsimo / remove_jdk_jre.sh
Created March 31, 2016 06:40
[Bash] Remove JDK and JRE from Mac OS X
#!/bin/bash
echo "Removing JDK and JRE.."
for i in /Library/Java/JavaVirtualMachines/jdk*.jdk \
/Library/PreferencePanes/JavaControlPanel.prefPane \
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin \
/Library/LaunchAgents/com.oracle.java.Java-Updater.plist \
/Library/PrivilegedHelperTools/com.oracle.java.JavaUpdateHelper \
/Library/LaunchDaemons/com.oracle.java.JavaUpdateHelper.plist \
/Library/Preferences/com.oracle.java.Helper-Tool.plist
do
@alxsimo
alxsimo / convert_img_byte_array.java
Created March 15, 2016 11:40
[Android] Convert image to bytes[] array with Glide
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)