Skip to content

Instantly share code, notes, and snippets.

:octocat:
Coding & Learning 🎓

Romell D.Z. romellfudi

:octocat:
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
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"
productFlavors{
pro{
dimension "dimension"
applicationIdSuffix ".demo"
versionNameSuffix "-demo"
}
dev{
dimension "dimension"
applicationIdSuffix ".full"
@romellfudi
romellfudi / flutter.sh
Last active Sep 15, 2019
Flutter Android emulator device
View flutter.sh
flutter packages get
flutter emulators --launch Nexus_5X_API_26
flutter run
flutter doctor -v
@romellfudi
romellfudi / android_avd.sh
Last active Sep 15, 2019
avd android emulator list
View android_avd.sh
cd ~/Library/Android/sdk/tools/bin && ./avdmanager list avd
cd ~/Library/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_26
@romellfudi
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
romellfudi / android_photo.java
Created Dec 10, 2018
Take a photo in Android N
View android_photo.java
private void selectImage() {
final CharSequence[] options = {"Take Photo", "Choose From Gallery", "Cancel"};
android.support.v7.app.AlertDialog.Builder builder = new android.support.v7.app.AlertDialog.Builder(this);
builder.setTitle("Select Option");
builder.setItems(options, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int item) {
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(builder.build());
if (options[item].equals("Take Photo")) {
@romellfudi
romellfudi / git-commands.sh
Last active Sep 15, 2019
all git - commands
View git-commands.sh
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 user.name "John Doe" <----> para identificar tu identidad
git config --global user.email johndoe@example.com <----> 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 (user.name)
.gitingnore <----> Archivo donde indicamos patrones de archivos que queremos ignorar
git init <----> Inicia un repositorio
@romellfudi
romellfudi / meshgrid_ predict_proba.py
Last active Sep 15, 2019
Plot predict data into an area meshgrid predict probability python model pyplot
View meshgrid_ predict_proba.py
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
romellfudi / key.sh
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
View key.sh
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
romellfudi / .bash_profile.sh
Last active Sep 15, 2019
NEED use source .bash_profile bash conda
View .bash_profile.sh
# virtualenv
# export WORKON_HOME=~/virtualenvs
# source /usr/local/bin/virtualenvwrapper.sh
[[ -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
romellfudi / hosting-on-github.md
Last active Oct 9, 2018 — forked from TylerFisher/hosting-on-github.md
Basic steps for hosting on Github
View hosting-on-github.md

Steps for Hosting a Website on GitHub

  1. Create a GitHub account on github.com.
  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 your-username.github.io. 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.