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 / git.sh
Last active Sep 15, 2019
Important Commands for git bash configuration config
View git.sh
# author: romellfudi
# clean local user
git config --local credential.helper ""
git config user.email "contact@boosttag.com"
git config user.name "contactboosttag"
git tag -n3
git push --follow-tags
git push --delete origin Rev0
# get url
git config --get remote.origin.url
@romellfudi
romellfudi / inspect.py
Last active Sep 15, 2019
Inspect Code on Python DataCamp view
View inspect.py
import inspect
print(inspect.getsource(sample_text))
@romellfudi
romellfudi / badget_jupyter.md
Last active Sep 15, 2019
Views badgets from Github Jupyter Notebook nbviwer mybinder colab markdown md
@romellfudi
romellfudi / show_image_url.md
Last active Sep 15, 2019
Preview image & url on Markdown md
View show_image_url.md
[![romellfui](snapshot/icono.png)](https://www.romellfudi.com/)
@romellfudi
romellfudi / list_library.py
Last active Sep 15, 2019
List libraries on Python installed pip packages
View list_library.py
import pip
installed_packages_list = sorted(["%s==%s" % (i.key, i.version)
for i in pip.get_installed_distributions()])
print(installed_packages_list)
@romellfudi
romellfudi / loadingBar.py
Last active Sep 15, 2019
Load Horizontal Bar progressing python progress pyprind
View loadingBar.py
# author: romellfudi
import pyprind
pbar = pyprind.ProgBar(n_)
for _ in range(n_):
...
pbar.update()
@romellfudi
romellfudi / ServiceCallback.java
Last active Sep 15, 2019
Simple Structure callback on Java Android Kotlin
View ServiceCallback.java
public interface ServiceCallback {
void successful(int code,Array<Bitmap> maps);
void throwProblem(int code, ServiceException exception);
}
class Service{
needImagesForSomethig(int idTrack, String hashSecurity, ServiceCallback callback){
if(OK)
callback.successful(0, ... );
else
callback.throwProblem(-1, new ServiceException("Not implement") );
@romellfudi
romellfudi / dump.py
Last active Sep 15, 2019
get all object's attrs python attributes attr datacamp
View dump.py
def dump(obj):
for attr in dir(obj):
print("obj.%s = %r" % (attr, getattr(obj, attr)))
print(dump())
@romellfudi
romellfudi / android-jar.gradle
Last active Sep 15, 2019
Build jar from Android-module gradle create classes
View android-jar.gradle
// author: romellfudi
task deleteJar(type: Delete) {
delete 'libs/nameLib.jar'
}
task createJar(type: Copy) {
from('build/intermediates/bundles/debug/')
// from('build/intermediates/bundles/release/')
into('libs')
@romellfudi
romellfudi / exclude_packagingOptions.gradle
Last active Sep 15, 2019
Exclude gradle android packagingOptions files
View exclude_packagingOptions.gradle
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
You can’t perform that action at this time.