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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from time import sleep | |
import csv | |
driver = webdriver.Chrome() | |
with open('crawl.csv') as csv_file: | |
reader = csv.reader(csv_file, delimiter=',') | |
for row in reader: | |
driver.get(row[0].lstrip()) |
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
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# Distribution / packaging | |
.Python |
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
print(123) | |
print(456) |
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 random | |
def non_random_choice(list): | |
return random.choice(list) | |
def programar(algo): | |
tecnicas = ['algoritmos', 'IA', 'um chatbot', 'um framework', ' alguma tecnologia'] | |
print(f'* TODO * Resolver {algo} com {non_random_choice(tecnicas)}') | |
def usar_ferramenta_para_resolver(algo): |
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
pragma solidity >=0.4.0 <0.6.0; | |
// A unique bid auction is a type of strategy game related to traditional auctions where the | |
// winner is usually the individual with the lowest unique bid, although less commonly the | |
// auction rules may specify that the highest unique bid is the winner. Unique bid auctions | |
// are often used as a form of competition and strategy game where bidders pay a fee to make | |
// a bid, or may have to pay a subscription fee in order to be able to participate. | |
contract PennyAuction { | |
address payable public owner; |
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
pragma solidity >=0.4.0 <0.6.0; | |
// A unique bid auction is a type of strategy game related to traditional auctions where the | |
// winner is usually the individual with the lowest unique bid, although less commonly the | |
// auction rules may specify that the highest unique bid is the winner. Unique bid auctions | |
// are often used as a form of competition and strategy game where bidders pay a fee to make | |
// a bid, or may have to pay a subscription fee in order to be able to participate. | |
contract PennyAuction { | |
address payable public owner; |
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
pragma solidity >=0.4.0 <0.7.0; | |
// See https://solidity.readthedocs.io/en/v0.5.11/introduction-to-smart-contracts.html | |
contract SimpleStorage { | |
uint storedData; | |
function set(uint x) public { | |
storedData = x; | |
} |
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
pragma solidity >=0.4.0 <0.7.0; | |
contract SimpleStorage { | |
uint storedData; | |
function set(uint x) public { | |
storedData = x; | |
} | |
function get() public view returns (uint) { |
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
pragma solidity ^0.5.0; | |
// ---------------------------------------------------------------------------- | |
// ERC Token Standard #20 Interface | |
// | |
// ---------------------------------------------------------------------------- | |
contract ERC20Interface { | |
function totalSupply() public view returns (uint); | |
function balanceOf(address tokenOwner) public view returns (uint balance); | |
function allowance(address tokenOwner, address spender) public view returns (uint remaining); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Storage</title> | |
<!-- <script src="https://cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.min.js"></script> --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/web3/1.4.0-rc.0/web3.min.js"></script> | |
<button class="enableEthereumButton">Enable Ethereum</button> | |
<br><br> |