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 / change.author.sh
Last active Jan 3, 2020
Git - Change Author
View change.author.sh
# clone bared repository
git clone --bare {repo}
# clean local credentials
git config --local credential.helper ""
git filter-branch -f --env-filter '
OLD_EMAIL="old@mail.com"
CORRECT_NAME="user"
@romellfudi
romellfudi / add_dependencies.gradle
Last active Dec 27, 2019
Android Gradle Global variables resvalue string dimen bool margin
View add_dependencies.gradle
apply from: 'project.gradle'
@romellfudi
romellfudi / SelectImageActivity.java
Created Dec 27, 2019
Android activity photo image was selected
View SelectImageActivity.java
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.os.StrictMode;
import android.provider.MediaStore;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
View build.gradle
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
@romellfudi
romellfudi / badget_android.md
Last active Jan 2, 2020
Badget Markdown Github Android Gitlab Bitbucket md; Jupyter Notebook nbviwer mybinder colab markdown; workflow ci; badgets
View badget_android.md

author: romellfudi

Platform API License Bintray Bintray Kotlin Android Arsenal Jitpack [CircleCi](h

@romellfudi
romellfudi / settings.gradle
Last active Dec 24, 2019
Gradle - Settings new module different directory
View settings.gradle
include ':apkapi',':ussdapi',':conector',':restapi'
project(':conector').projectDir = new File(settingsDir, '../Conectorbase/conector')
project(':ussdapi').projectDir = new File(settingsDir, '../USSDApi/ussdapi')
project(':restapi').projectDir = new File(settingsDir, '../RestApi/restapi')
@romellfudi
romellfudi / enable.download.txt
Last active Dec 24, 2019
Colab Chrome - Enable download
View enable.download.txt
# you need to enable third-party cookies but for now it only works for Chrome browser, open
chrome://settings/content/cookies
# make sure the option for Block third-party cookies is disabled and click add button in Allow section then add
colab.research.google.com
@romellfudi
romellfudi / remove.sh
Last active Dec 27, 2019
Terminal - Remove all folder or file in tree delete mac
View remove.sh
find . -name .ipynb_checkpoints -exec rm -rf {} \;
@romellfudi
romellfudi / zip_file.py
Last active Dec 24, 2019
Python - zip Colab file files
View zip_file.py
name_zip ='name.zip'
list_f = !ls patterns -lt # order by date modificate
!zip {name_zip} ' '.join({list_f})
@romellfudi
romellfudi / pascal.voc_xml.py
Last active Dec 24, 2019
Python Change Pascal annots resize box nn neural network
View pascal.voc_xml.py
import os
import re
import glob
import math
dir_ = 'annots/'
output = 'annots/'
width = 512
height = width
extension = 'xml'
You can’t perform that action at this time.