Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /home/<user>/ | |
| sudo apt-get install unzip | |
| wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
| unzip sdk-tools-linux-4333796.zip -d Android | |
| rm sdk-tools-linux-4333796.zip | |
| sudo apt-get install -y lib32z1 openjdk-8-jdk | |
| export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
| export PATH=$PATH:$JAVA_HOME/bin | |
| printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc | |
| cd Android/tools/bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public IEnumerable<T> BindSql<T>(IDataReader dataReader) | |
| { | |
| var retorno = new List<T>(); | |
| while (dataReader.Read()) | |
| { | |
| Type tipo = typeof(T); | |
| var temp = Activator.CreateInstance(tipo); | |
| var properties = temp.GetType().GetProperties(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // O projeto que me deu o caminho sobre como funcionava foi o do danielmarquesvg | |
| // https://github.com/danielmarquesvg/BoletoBancario | |
| // Só atentem que não dou garantias que funcione. | |
| // Esse código funcionou e eu consegui validar a linha digitável a partir dele. | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mult = [lambda x, i=i:x*i for i in range(4)] | |
| print(mult) | |
| #[<function <listcomp>.<lambda> at 0x7fd8b26b9268>, <function <listcomp>.<lambda> at 0x7fd8b26b9f28>, <function <listcomp>.<lambda> at 0x7fd8b26b9ea0>, <function <listcomp>.<lambda> at 0x7fd8b26b9e18>] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import scrapy | |
| import datetime | |
| from scrapy_imoveis import items | |
| class ScrapyExampleSpider(scrapy.Spider): | |
| name = "scrapy_example" | |
| allowed_domains = ["dominio.com"] | |
| start_urls = ( | |
| 'http://dominio.com/venda', | |
| 'http://dominio.com/aluguel', |
Nesse artigo vou mostrar rapidamente como tirar um Print Screen da página inicial de seu site utilizando diversos dispositivos. Algo que pode facilitar e muito a vida caso esteja desenvolvendo uma página responsiva.
Nesse exemplo vamos utilizar o NodeJS e o Selinium 2. As outras dependências necessárias estão especificadas no arquivo package.json. Arquivo que é usado para fornecer ao gerenciador de pacotes NPM informações de como lidar com as dependências do projeto, a descrição do projeto, a licença utilizada, dentre outras.
Para facilitar nossa vida vamos utilizar um serviço de Cloud do SauceLabs. Esse serviço permite utilizar diversos tipos de navegadores. Logo logo