Skip to content

Instantly share code, notes, and snippets.

View rpaskin's full-sized avatar

Ronnie Paskin rpaskin

  • Rio de Janeiro, Brazil
  • 20:48 (UTC -03:00)
  • LinkedIn in/rpaskin
View GitHub Profile
@rpaskin
rpaskin / Planetas em órbita.markdown
Created August 19, 2015 15:49
Planetas em órbita
@rpaskin
rpaskin / template.html
Created June 19, 2017 13:47
Template base para HTML
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="pt-br">
<title>
<!-- TITLE -->
</title>
<link rel="stylesheet" href="estilo.css">
<style>
@rpaskin
rpaskin / calc.css
Created July 10, 2017 16:41
Template de calculadora inicial
#calc_main {
display: inline-block;
background-color: #333;
border-radius: 20px;
height: 500px;
width: 500px;
box-shadow: inset 5px 5px 5px rgba(255,255,255,0.6),
inset -5px -5px 5px rgba(0, 0, 0, .6);
}
@rpaskin
rpaskin / index.html
Created July 2, 2018 18:23
JS Bin Jogo de Trollagem // source http://jsbin.com/galijep
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Jogo de Trollagem">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
#myBtn{
position:absolute;
@rpaskin
rpaskin / hashing1.html
Created June 6, 2019 14:12
Bootstrapping html file for playing around with Ethereum on Opera on Android
<!DOCTYPE html>
<html>
<head>
<title>Test Opera</title>
<script src="//cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.min.js" type="text/javascript"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/js-sha3/0.8.0/sha3.min.js" type="text/javascript"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js" type="text/javascript" charset="utf-8" async defer></script>
<script type="text/javascript">
const web3 = new Web3(ethereum);
const storage = window.localStorage;
<!DOCTYPE html>
<html>
<head>
<title>Test Opera</title>
<script src="//cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.min.js" type="text/javascript"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/js-sha3/0.8.0/sha3.min.js" type="text/javascript"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js" type="text/javascript" charset="utf-8" async defer></script>
<script type="text/javascript">
const web3 = new Web3(ethereum);
const storage = window.localStorage;
@rpaskin
rpaskin / hashing3.html
Created June 6, 2019 17:39
We can use the following code on Opera Android to get a file, hash it, then sign the hash with the local Ethereum Account
<!DOCTYPE html>
<html>
<head>
<title>Test Opera</title>
<script src="//cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.min.js" type="text/javascript"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/js-sha3/0.8.0/sha3.min.js" type="text/javascript"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
const web3 = new Web3(ethereum);
@rpaskin
rpaskin / Recover.sol
Created June 6, 2019 17:44
This Solidity smart contract will return the signer of a signed r, s, v package with content msgHash
contract Recover {
function recoverAddr(bytes32 msgHash, bytes1 v, bytes32 r, bytes32 s)
pure public
returns (address) {
return ecrecover(msgHash, uint8(v), r, s);
}
}
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome()
driver.get("http://www.python.org")
assert "Python" in driver.title
elem = driver.find_element_by_name("q")
elem.clear()
elem.send_keys("pycon")
elem.send_keys(Keys.RETURN)
http://www.python.org q pycon
https://www.google.com/ q crawler
https://www.wikipedia.org/ search crawler