Skip to content

Instantly share code, notes, and snippets.

View DoctorNasa's full-sized avatar
🎯
Focusing

Roongroj.P DoctorNasa

🎯
Focusing
  • thailand
  • 04:08 (UTC +07:00)
View GitHub Profile

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@DoctorNasa
DoctorNasa / DamnSimpleNftStake.sol
Created April 23, 2022 11:53 — forked from Chmarusso/DamnSimpleNftStake.sol
Super Simple NFT staking
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Receiver.sol";
contract NftStaker {
IERC1155 public parentNFT;
struct Stake {
@DoctorNasa
DoctorNasa / PetAdoptionMarta.sol
Created October 20, 2021 05:52 — forked from martagal/PetAdoptionMarta.sol
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.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract PetAdoption {
Adoption[16] public adoptions;
mapping(uint256 => Pet) private pet_list;
struct Adoption {
@DoctorNasa
DoctorNasa / CowBreeding Solidity
Created October 17, 2021 19:21 — forked from yuyasugano/CowBreeding Solidity
Cow breeding smart contract
pragma solidity ^0.4.23;
import "./ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";
/**
* @title CowBreeding
* @dev Cow Basic Implementation to breed them and provides basic functions.
*/
contract CowBreeding is Ownable {
@DoctorNasa
DoctorNasa / ModSalary.sol
Created April 13, 2021 19:18 — forked from korrio/ModSalary.sol
ModSalary.sol
// File: @openzeppelin/contracts/math/SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*