Skip to content

Instantly share code, notes, and snippets.

View kennym's full-sized avatar

Kenny Meyer kennym

View GitHub Profile
gid:ZNBMp7F5RniNMkKuB6Trk9
@kennym
kennym / .deps...github...nibbstack...erc721...src...contracts...ownership...ownable.sol
Created December 25, 2021 23:51
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
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
*/
contract Ownable
{
@kennym
kennym / EtherWallet.sol
Last active May 25, 2023 06:50
A simple smart contract that acts like a wallet - it stores and sends funds
pragma solidity ^0.8.0;
contract EtherWallet {
address public owner;
constructor(address _owner) {
owner = _owner;
}
function deposit() payable public {
@kennym
kennym / index.js
Created July 10, 2021 13:31
Test Matic Faucet autofarm script
const fetch = require('node-fetch');
setInterval(() => {
fetch('https://api.faucet.matic.network/transferTokens', {
method: 'post',
body: '{"network":"mumbai","address":"YOUR_ADDRESS_HERE","token":"maticToken"}',
headers: { 'Content-Type': 'application/json' },
})
.then(res => res.json())
.then(console.log)
//SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.5.0 <0.9.0;
contract Lottery{
// declaring the state variables
address payable[] public players; //dynamic array of type address payable
address public manager;
@kennym
kennym / lottery.sol
Created February 21, 2021 14:42
Lottery contract
pragma solidity ^0.4.17;
contract Lottery {
address public manager;
address[] public players;
constructor() public {
manager = msg.sender;
}
{"behaviorKey": "bothering"}
Verifying my Blockstack ID is secured with the address 18ttyL9YoPAPtjU4f6q8jcuhZeiAmougDx https://explorer.blockstack.org/address/18ttyL9YoPAPtjU4f6q8jcuhZeiAmougDx

Keybase proof

I hereby claim:

  • I am kennym on github.
  • I am kennymeyer (https://keybase.io/kennymeyer) on keybase.
  • I have a public key ASCdRr6JuT7CWA8bK5mB-bi8xyefxws6Y2_pHqGjBXMKZwo

To claim this, I am signing this object:

@kennym
kennym / file
Created February 20, 2017 01:57
freedom_public
{"0.2059025215810555":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMEPv/MoVRsKYlOr02RdSW0oNitXzO7i4wg\r\nIYybe+bVl/Msf5+igPkG3pypLkxdqbKUjfD6CLkIyKmvDuCBC7iX283/AAAACDxn\r\naXRodWI+wv8AAACOBBATCABA/wAAAAWCWKpNJP8AAAACiwn/AAAACZCwF14xT3hd\r\nmv8AAAAFlQgJCgv/AAAABJYDAQL/AAAAApsD/wAAAAKeAQAAm5IBAJYO2bqW8Efm\r\nEmC8/yOGd12vBjqT+NmLWYpJmUcL6331AQC0wl9hwlcgXjEkiTgxfFjj7PB7Y6IE\r\nAxRxyfxbH+gD0M7/AAAAVgQAAAAAEggqhkjOPQMBBwIDBF1cwfmRHCm99W7pDQX/\r\nY3DzCLO7m8BHGk1hRZMw1nXdKjoLSvyYIpvCCYqCDhrZUd9nTq5jeZpu9/dvFAOa\r\nQuwDAQgHwv8AAABtBBgTCAAf/wAAAAWCWKpNJP8AAAAJkLAXXjFPeF2a/wAAAAKb\r\nDAAASx0BAJQa8kapNEGvchpiLnx2AuQNxyLYcoWIi5PcjOYQ07PaAPkBsxHvfCVe\r\n10rwWseeYWOYCjE71cTUGSwJp+lldmHSFw==\r\n=mCh3\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n"}