Skip to content

Instantly share code, notes, and snippets.

@mxgxw
mxgxw / HuacalNFT_index.html
Created January 1, 2022 00:28
Código del Visor de Huacales
<html>
<head>
<meta charset="utf-8"/>
<title>¡Mira tu Huacal!</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/web3/1.7.0-rc.0/web3.min.js" integrity="sha512-/PTXSvaFzmO4So7Ghyq+DEZOz0sNLU4v1DP4gMOfY3kFu9L/IKoqSHZ6lNl3ZoZ7wT20io3vu/U4IchGcGIhfw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/@svgdotjs/svg.js@latest/dist/svg.min.js"></script>
<script>
var huacalInterface = [
{
@mxgxw
mxgxw / HuacalNFT.sol
Created December 31, 2021 04:41
Huacal NFT Mxgxw
// SPDX-License-Identifier: MIT
// File: https://raw.githubusercontent.com/nibbstack/erc721/master/src/contracts/ownership/ownable.sol
pragma solidity ^0.8.0;
/**
* @dev The contract has an owner address, and provides basic authorization control whitch
* simplifies the implementation of user permissions. This contract is based on the source code at:
* https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/ownership/Ownable.sol
@mxgxw
mxgxw / extract_transactions.py
Last active September 21, 2021 20:24
Bitcoin Blockchain Transaction Explorer
import datetime
import json
import time
import os
from bitcoinlib.services.bitcoind import BitcoindClient
from bitcoinlib.transactions import transaction_deserialize
from creds import *
import sys
from transactions import *
La lista incluye 102 participantes. Se incluyeron solo respuestas no RT.
Se excluyeron algunas respuestas que eran Spam y no estababan participando.
Tweet original:
https://twitter.com/Nuryvali/status/1416066774047543296
@klhernandez42
@feriavillana
@CornejoOdila
@mxgxw
mxgxw / MarianaCoin.sol
Created August 7, 2021 01:16
Script en Solidity para los MarianaCoin
pragma solidity 0.6.6;
// ----------------------------------------------------------------------------
// 'MarianaCoin' token contract
//
// Deployed to : 0x839731207ba6101BF7d4A2BEcb5FE07a22184B2A
// Symbol : MCO
// Name : MarianaCoin
// Total supply: 144
// Decimals : 3
@mxgxw
mxgxw / receptor.az
Created June 4, 2019 18:36
Archivos de Ejemplo para cálculo de coberturas con SPLAT (LoRaWAN Region 915-198MHz)
0
0 0.8750000
30 1.0000000
60 1.0000000
90 0.9500000
120 0.9500000
150 0.9500000
180 1.0000000
210 1.0000000
240 0.9500000
@mxgxw
mxgxw / extract.js
Created November 19, 2015 22:52 — forked from anonymous/extract.js
Extractor de Resultados Elecciones 2015 - El Salvador
/*
Extractor de Resultados Elecciones 2015 - El Salvador
Copyright (C) 2015 Mario Gómez (mario.gomez*_at_*teubi.co)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,