Skip to content

Instantly share code, notes, and snippets.

Coding & Learning 🎓

Romell D.Z. romellfudi

Coding & Learning 🎓
Block or report user

Report or block romellfudi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
romellfudi / productFlavors.gradle3.3.gradle
Last active Sep 15, 2019
flavor at android 3 with gradle 3.3
View productFlavors.gradle3.3.gradle
flavorDimensions "dimension"
dimension "dimension"
applicationIdSuffix ".demo"
versionNameSuffix "-demo"
dimension "dimension"
applicationIdSuffix ".full"
romellfudi /
Last active Sep 15, 2019
Flutter Android emulator device
flutter packages get
flutter emulators --launch Nexus_5X_API_26
flutter run
flutter doctor -v
romellfudi /
Last active Sep 15, 2019
avd android emulator list
cd ~/Library/Android/sdk/tools/bin && ./avdmanager list avd
cd ~/Library/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_26
romellfudi / secret_codes.txt
Last active Sep 15, 2019
Secret codes Smartphone Android ussd number phone
View secret_codes.txt
| Code | Description |
| *#0011# | GSM Infos |
| *#0228# | Battery Infos |
| **05*<PUK>*<new PIN>*<new PIN for confirmation># | Unlock PIN |
| *#*#0588#*#* | Test Proximity sensor |
| *#06# | Show IMEI |
| *#*#1234#*#* | Firmware Info |
| *135# | Show your phone number|
romellfudi /
Created Dec 10, 2018
Take a photo in Android N
private void selectImage() {
final CharSequence[] options = {"Take Photo", "Choose From Gallery", "Cancel"}; builder = new;
builder.setTitle("Select Option");
builder.setItems(options, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int item) {
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
if (options[item].equals("Take Photo")) {
romellfudi /
Last active Sep 15, 2019
all git - commands
Comandos Git
.gitconfig <----> se puede encontrar en el entorno del sistema en la carpeta /etc/gitconfig
.gitconfig <----> se puede encontrar en el entorno del usuario en la carpeta ~
git config --global "John Doe" <----> para identificar tu identidad
git config --global <----> para identificar tu email
.gitconfig <----> se puede encontrar en el directorio del repositorio git en la carpeta .git/config
git config --list <----> para listar tu configuracion
git config [clave] <----> para ver el valor de esa clave (
.gitingnore <----> Archivo donde indicamos patrones de archivos que queremos ignorar
git init <----> Inicia un repositorio
romellfudi / meshgrid_
Last active Sep 15, 2019
Plot predict data into an area meshgrid predict probability python model pyplot
View meshgrid_
X0_tp, X0_fp = X0[tp0], X0[~tp0]
X1_tp, X1_fp = X1[tp1], X1[~tp1]
alpha = 0.5
# class 0: dots
plt.plot(X0_tp[:, 0], X0_tp[:, 1], 'o', alpha=alpha,
color='red', markeredgecolor='k')
plt.plot(X0_fp[:, 0], X0_fp[:, 1], '*', alpha=alpha,
color='#990000', markeredgecolor='k') # dark red
romellfudi /
Last active Sep 15, 2019 — forked from parthitechnotion/create hash key for google apis
create hash key for google apis debug debugkey android jsk keystore java
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v -storepass android
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
keytool -exportcert -alias androiddebugkey -keystore "C:\Documents and Settings\Administrator\.android\debug.keystore" | "C:\OpenSSL\bin\openssl" sha1 -binary |"C:\OpenSSL\bin\openssl" base64
romellfudi /
Last active Sep 15, 2019
NEED use source .bash_profile bash conda
# virtualenv
# export WORKON_HOME=~/virtualenvs
# source /usr/local/bin/
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# added by Anaconda3 5.2.0 installer
export PATH="/Users/romelldominguez/anaconda3/bin:$PATH"
romellfudi /
Last active Oct 9, 2018 — forked from TylerFisher/
Basic steps for hosting on Github

Steps for Hosting a Website on GitHub

  1. Create a GitHub account on
  2. Download either [GitHub for Mac][1] or [GitHub for Windows][2], depending on your operating system. Open the app and log in using the account you just created.
  3. (On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
  4. Create a new repository in your GitHub application. Name it The name is very important. Note the folder that GitHub is saving the repository to. Make sure the "Push to GitHub?" box is checked.
  5. Move your website's files into the folder that GitHub just created when you made the repository. IMPORTANT: Your homepage HTML file must be called "index.html", and it must exist in the top-level directory.
  6. Back in the GitHub application, you should see your files in the left column. Make sure they are all checked. If so, enter a mess
You can’t perform that action at this time.