Skip to content

Instantly share code, notes, and snippets.

View Turupawn's full-sized avatar
🇭🇳
Karaoke veteran

Ahmed Castro Turupawn

🇭🇳
Karaoke veteran
View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
import "@chainlink/contracts/src/v0.8/interfaces/KeeperCompatibleInterface.sol";
contract MunonFactory {
uint256 public hackathon_count;
/* Whitelist */
const mintWhitelist = async () => {
let mint_amount = document.getElementById("mint_amount").value
const result = await contract.methods.mintWhitelist(mint_amount)
.send({ from: accounts[0], gas: 0, value: NFT_PRICE * mint_amount })
.on('transactionHash', function(hash){
document.getElementById("web3_message").textContent="Minting...";
})
.on('receipt', function(receipt){
**Tema**
Arancelario: 9
Marcas: 85
Agro: 8
Convenios: 3
Ambiental: 8
Familia: 7
Avisos Legales: 102
Licitaciones: 103
Presupuesto: 21
2021/11/23 02:43:08 [crit] 870#870: *28915 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 207.154.202.189, server: 0.0.0.0:443
2021/11/23 02:49:48 [crit] 870#870: *28975 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 159.203.10.47, server: 0.0.0.0:443
2021/11/23 03:21:58 [crit] 870#870: *29087 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 161.35.86.181, server: 0.0.0.0:443
2021/11/23 03:54:26 [info] 294991#294991: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:73
2021/11/23 03:54:27 [notice] 294996#294996: signal process started
[ N 2021-11-23 03:54:27.3904 294997/T1 age/Wat/WatchdogMain.cpp:1373 ]: Starting Passenger watchdog...
[ N 2021-11-23 03:54:27.4145 295003/T1 age/Cor/CoreMain.cpp:1340 ]: Starting Passenger core...
[ N 2021-11-23 03:
@Turupawn
Turupawn / tlgo.rb
Last active December 9, 2021 01:34
t.string "name" no usado
t.string "url" queda igual
t.date "publication_date" queda igual
t.string "publication_number" no usado
t.text "description" "Fundamentos del derecho"
t.text "short_description" "Objeto de la demanda"
t.text "full_text" queda igual
t.integer "start_page" no usado
t.integer "end_page" no usado
t.integer "position" no usado
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
contract Hello
{
string public hello = "Hola mundo!";
function setHello(string memory _hello) public
{
hello = _hello;
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract MyToken is ERC20
{
constructor () ERC20("My Token", "TKN")
{
_mint(msg.sender, 1000 ether);
// contracts/GameItem.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
@Turupawn
Turupawn / truffle-config.js
Created February 15, 2022 22:37
ejemplo truffle config
const HDWalletProvider = require('@truffle/hdwallet-provider');
const fs = require('fs');
const mnemonic = fs.readFileSync(".secret").toString().trim();
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
@Turupawn
Turupawn / Hello.sol
Created February 18, 2022 17:13
holis.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
contract Hello
{
string public hello = "Hola mundo!";
function setHello(string memory _hello) public
{
hello = _hello;