Skip to content

Instantly share code, notes, and snippets.

View DoctorNasa's full-sized avatar
🎯
Focusing

Roongroj.P DoctorNasa

🎯
Focusing
  • thailand
  • 05:13 (UTC +07:00)
View GitHub Profile
@Chmarusso
Chmarusso / DamnSimpleNftStake.sol
Created February 13, 2022 15:54
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 {
@korrio
korrio / stupid.fetch.js
Created June 13, 2019 08:57
stupid.fetch.js
const fetch = require("node-fetch");
async function getJson() {
return await fetch('https://mcot.aq1.co/api/sure.json')
.then(response => response.json())
.then(data => {
let arr = [];
console.log(data) // Prints result from `response.json()` in getRequest
data.output.forEach(function(v, i) {
let title = v.title;