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
// Ceramic CAIP10 Stream | |
{ | |
"state": { | |
"anchorProof": { | |
"blockNumber": 13625205, | |
"blockTimestamp": 1637046621, | |
"chainId": "eip155:1", | |
"root": "bafyreie6gtmghxkix2rynf6bmydeh5kbyrkptj4vl2zuhzpghri4jpwvia", | |
"txHash": "bagjqcgzave2oyltwsnqzmiiadr32idcvfv53ik62qqmjrynf6puafvftclma" | |
}, |
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
diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml | |
index 244d4d6..bda8d78 100644 | |
--- a/.github/workflows/check-format.yml | |
+++ b/.github/workflows/check-format.yml | |
@@ -9,4 +9,3 @@ jobs: | |
- uses: actions/setup-node@v1 | |
- run: ./scripts/format | |
shell: bash | |
- | |
diff --git a/prettier.config.js b/prettier.config.js |
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
const w = new ListWidget() | |
w.backgroundImage = await getBgImage() | |
const joke = w.addText(await getJoke()) | |
joke.textColor = Color.white() | |
joke.minimumScaleFactor=0.1; | |
joke.shadowOffset = new Point(2,2) | |
joke.shadowRadius = 2 | |
joke.centerAlignText() |
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
//El armado del css lo haremos según styled components (https://www.styled-components.com/) | |
//Para reutilizar los componentes, me parece que sería mejor tenerlos en un archivo aparte. | |
const Button = styled.a` | |
//Acá iria todo el css de cada componente por ej de una etiqueta <a href=""></a> | |
` | |
const Title = styled.h1` | |
//Acá iria todo el css de cada componente por ej de una etiqueta <h1></h1> | |
` |
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
var web3 = new Web3(); | |
web3.setProvider(new web3.providers.HttpProvider("http://localhost:8545")); | |
accounts = web3.eth.getAccounts().then(accounts => { | |
var resolverABI = fs.readFileSync("./resolver.json").toString(); | |
const resolver = new Resolver(web3.currentProvider, "0xdd4f83fd3fd37f96b4f4019d4de7387363fc1534", resolverABI); | |
resolver.setAddr("foo.rsk", accounts[0], accounts[1]).then(result => console.log(result)); | |
}); |
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
async function deployRNS() { | |
try { | |
var web3 = new Web3(); | |
web3.setProvider(new web3.providers.HttpProvider("http://localhost:8545")); | |
accounts = await web3.eth.getAccounts(); | |
var input = { | |
"AbstractRNS.sol": fs.readFileSync("./AbstractRNS.sol").toString(), | |
"RNS.sol": fs.readFileSync("./RNS.sol").toString(), | |
"ResolverInterface.sol": fs.readFileSync("./ResolverInterface.sol").toString(), | |
"PublicResolver.sol": fs.readFileSync("./PublicResolver.sol").toString() |
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
const { randomBytes, createHash } = require('crypto'); | |
const secp256k1 = require('secp256k1'); | |
const bs58 = require('bs58'); | |
// Generate 32 Bytes Private Key with crypto.randomBytes() | |
let privKey; | |
do { | |
privKey = randomBytes(32); | |
} while (!secp256k1.privateKeyVerify(privKey)); |
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
{ | |
"basics": { | |
"name": "Sebastian Martinez", | |
"label": "Mechanical Engineer", | |
"picture": "https://ssl.gstatic.com/images/branding/product/1x/avatar_circle_blue_512dp.png", | |
"email": "[email protected]", | |
"phone": "+54 9 11 3424 1337", | |
"website": "https://sebastinez.dev", | |
"summary": "A summary of Sebastian Martinez...", | |
"location": { |
NewerOlder