Skip to content

Instantly share code, notes, and snippets.

View michelpf's full-sized avatar
💀
Call your champion!

Michel Fernandes michelpf

💀
Call your champion!
View GitHub Profile
@michelpf
michelpf / README.md
Created July 23, 2020 00:48 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@michelpf
michelpf / car_haarcascade.py
Created June 7, 2019 00:25
Identificar carros utilizando Haar Cascade
def identificar_carros(imagem):
cars_classifier = cv2.CascadeClassifier('classificadores/haarcascade_car.xml')
gray = cv2.cvtColor(imagem, cv2.COLOR_BGR2GRAY)
cars = cars_classifier.detectMultiScale(gray, 1.2, 3)
for (x,y,w,h) in cars:
roi = imagem[y:y+h, x:x+w]
area = int(w) * int(h)
cv2.rectangle(imagem, (x,y), (x+w,y+h), (127,0,255), 2)
@michelpf
michelpf / Main.java
Created July 2, 2017 00:13
Exemplo de Java com Selenium realizando interações
public class Main {
public static void main(String[] args) {
File file = new File("drivers/IEDriverServer.exe");
System.setProperty("webdriver.ie.driver", file.getAbsolutePath());
WebDriver driver = new InternetExplorerDriver();
driver.get("http://michelpf.com/exemplo-de-calculadora-em-javascript/");
@michelpf
michelpf / Main.java
Last active July 2, 2017 00:12
Exemplo Básico do Selenium em Java
public class Main {
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.get("http://www.terra.com.br");
boolean i = driver.getPageSource().contains("Lula");
System.out.println("Lula no Terra? "+(i?"Sim":"Não"));
driver.get("http://www.uol.com.br");
@michelpf
michelpf / Main.java
Created June 30, 2017 01:32
Exemplo de bot do Telegram desenvolvido em Java
public class Main {
public static void main(String[] args) {
//Criação do objeto bot com as informações de acesso
TelegramBot bot = TelegramBotAdapter.build("SEU_TOKEN_DE_ACESSO");
//objeto responsável por receber as mensagens
GetUpdatesResponse updatesResponse;
//objeto responsável por gerenciar o envio de respostas