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 / MyAccessibilityService.java
Last active Sep 9, 2018
use AccessibilityService on Anrdoid
View MyAccessibilityService.java
public class MyAccessibilityService extends AccessibilityService {
@Override
public void onAccessibilityEvent(AccessibilityEvent event) {
clickOnButton(event,"OK")
}
private static void clickOnButton(AccessibilityEvent event, String label) {
if (event.getSource() != null) {
for (AccessibilityNodeInfo nodeButton
: event.getSource().findAccessibilityNodeInfosByText(label)) {
View list_all_files.py
import os;os.listdir(os.curdir)
@romellfudi
romellfudi / readFile.py
Created Sep 9, 2018
Simple read file in python
View readFile.py
lines = [line.rstrip('\n') for line in open('training_data.json')]
@romellfudi
romellfudi / ecdf.py
Created Sep 9, 2018
Empirical cumulative distribution function
View ecdf.py
def ecdf(data):
n = len(data)
x = np.sort(data)
y = np.arange(1, n+1) / n
return x, y
@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 / 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 / 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 / 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 / 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 / java.keystore.sh
Last active Jan 22, 2019
View java keystore
View java.keystore.sh
On MAC
cd /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/
keytool -list -v -keystore "/Users/romelldominguez/.android/debug.keystore"
On Windows
"C:\Program Files\Java\jre7\bin\keytool" -list -v -keystore "C:\Users\Fudi\.android\debug.keystore"
You can’t perform that action at this time.