I hereby claim:
- I am Horaddrim on github.
- I am horaddrim (https://keybase.io/horaddrim) on keybase.
- I have a public key whose fingerprint is F4E4 8508 0511 06D3 E1BD 4B75 4C82 D0F3 C357 40AB
To claim this, I am signing this object:
| /* | |
| How to setup | |
| You must be using a PS3 or compatible controller, along with a DJI Tello drone to run this example. | |
| You run the Go program on your computer and communicate wirelessly via WiFi with the Tello. | |
| How to run | |
| go run examples/tello_ps3.go | |
| */ |
| #!/usr/bin/python2 | |
| import socket | |
| import sys | |
| import time | |
| def recv_timeout(the_socket,timeout=2): | |
| #make socket non blocking | |
| the_socket.setblocking(0) | |
| total_data=[]; |
I hereby claim:
To claim this, I am signing this object:
| import requests | |
| url_alvo = "https://barraco-juice-shop.herokuapp.com/rest/user/login" | |
| cabecalhos_fake = { | |
| "Accept": "application/json, text/plain, */*", | |
| "Accept-Encoding": "gzip, deflate, br", | |
| "Accept-Language": "en-US,en;q=0.9,pt-BR;q=0.8,pt;q=0.7", | |
| "Connection": "keep-alive", | |
| "Content-Length": 50, | |
| "Content-Type": "application/json", |
| 123456 | |
| password | |
| 12345678 | |
| qwerty | |
| 123456789 | |
| 12345 | |
| 1234 | |
| 111111 | |
| 1234567 | |
| dragon |
| import requests | |
| url_alvo = "https://barraco-juice-shop.herokuapp.com/rest/user/login" | |
| cabecalhos_fake = { | |
| "Accept": "application/json, text/plain, */*", | |
| "Accept-Encoding": "gzip, deflate, br", | |
| "Accept-Language": "en-US,en;q=0.9,pt-BR;q=0.8,pt;q=0.7", | |
| "Connection": "keep-alive", | |
| "Content-Length": 50, | |
| "Content-Type": "application/json", |
| /* Aqui eu dou o require do modulo OS, que contém | |
| todas as informações disponiveis sobre o sistema operacional | |
| que seu código Js ta rodando, desde distribuição (se é Windows, Mac* ou Linux), | |
| arquitetura do processador (se é 32, 64 ou 86 bits) e coisas assim. | |
| E uma das informações que ele tem é das interfaces de rede do PC, que não são nada | |
| além de uma listagem com as capacidades da tua placa de rede :D | |
| Geralmente, num notebook comum você vai ter 3: | |
| lo: Que é uma interface de loopback (por isso o nome Lo :D) que serve para comunicação interna dos teus serviços | |
| Ou seja, seu "localhost:3000" pra testar a nossa API só funcionou por conta dela :D | |
| name | line | |
|---|---|---|
| Tucuruvi | Linha 1–Azul | |
| Parada Inglesa | Linha 1–Azul | |
| Jardim São Paulo-Ayrton Senna | Linha 1–Azul | |
| Santana | Linha 1–Azul | |
| Carandiru | Linha 1–Azul | |
| Portuguesa-Tietê | Linha 1–Azul | |
| Armênia | Linha 1–Azul | |
| Tiradentes | Linha 1–Azul | |
| Luz | Linha 1–Azul |
| function retriveOnlyTheRicksWithFamily(ricks) { | |
| return ricks | |
| .filter(toCountIfRickHaveAFamily) | |
| .map(toPickOnlyTheRicksNameAndDimension); | |
| } |
| const dadosParaTeste = { | |
| // Aqui ficam os outros Ricks dos outros testes! | |
| ricks: [ | |
| { | |
| name: "Rick Sanchez", | |
| dimension: "C-137", | |
| family: [ | |
| { | |
| name: "Morty Smith", | |
| age: 14 |