Skip to content

Instantly share code, notes, and snippets.

View ErosMLima's full-sized avatar
🎯
I'm building apps and helping build new innovations in tech

Eros M.Lima ErosMLima

🎯
I'm building apps and helping build new innovations in tech
View GitHub Profile
@ErosMLima
ErosMLima / AdbCommands
Created February 7, 2021 17:55 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader

DIOmarketplace

Comandos usados no módulo Redux do curso React Native da Digital Innovation One.


1. npx react-native init DIOmarketplace

2. yarn add eslint -D
   yarn eslint --init
@pxotox
pxotox / README.md
Last active April 16, 2021 21:08
CrossKnowledge - Technical challenge (Python)

Technical challenge

Here is the description of what you'll need to implement on this technical challenge.

Challenges

1. Cache function

Implement a function, class or module (it can be on the same file - request.py) to cache requests made with the existing code, preventing unecessary calls. You MUST use this Redis module as a cache service. Feel free to change the code within the existing functions, but do not alter their behaviour.

Context: Caching requests can be useful to avoid unecessary HTTP calls for the same resources, however, the resources can change during time, so it is important to keep in mind that cache needs to be invalidated at some point.

setTimeout(function() {
function getAllModules() {
return new Promise((resolve) => {
const id = _.uniqueId("fakeModule_");
window["webpackJsonp"](
[],
{
[id]: function(module, exports, __webpack_require__) {
resolve(__webpack_require__.c);
}
@dchohfi
dchohfi / .swift
Created June 11, 2018 16:53
Apple custom typography
import UIKit
// swiftlint:disable file_length
extension UIColor {
static var link: UIColor {
return UIColor(r: 0, g: 152, b: 238)
}
static var toastNotification: UIColor {
return .white
@Pulimet
Pulimet / AdbCommands
Last active April 26, 2025 13:51
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
import json
from time import sleep
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.common.exceptions import ElementNotVisibleException
def click_button_until_all_displayed(browser, button_id):
button = browser.find_element_by_id(button_id)
@akitaonrails
akitaonrails / BACKEND.md
Last active April 8, 2025 08:52
Codeminer 42 - BACKEND Test

TRZ (The Resident Zombie) - Backend

Problem Description

The world, as we know it, has fallen into an apocalyptic scenario. The "Influenzer T-Virus" (a.k.a. Twiter Virus) is transforming human beings into stupid beasts (a.k.a. Zombies), hungry to cancel humans and eat their limbs.

You, the last survivor who knows how to code, will help the resistance by deploying a system to connect the remaining humans. This system will be essential to detect new infections and share resources between the members.

Requirements

@dchohfi
dchohfi / persistence.xml
Created September 17, 2012 20:16
persistence.xml
<persistence-unit name="">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class></class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
@dchohfi
dchohfi / Contato.h
Created June 20, 2012 15:05
NSCoding protocol
#import <Foundation/Foundation.h>
@interface Contato : NSObject <NSCoding>
@property (nonatomic, retain) NSString *nome;
@property (nonatomic, retain) NSString *email;
@property (nonatomic, retain) NSString *endereco;
@property (nonatomic, retain) NSString *telefone;
@property (nonatomic, retain) NSString *site;
@property (nonatomic, retain) UIImage *imagem;