Skip to content

Instantly share code, notes, and snippets.

View dibakarsutradhar's full-sized avatar
👾
Powered by Coffee

Dibakar dibakarsutradhar

👾
Powered by Coffee
View GitHub Profile
@shobhitic
shobhitic / FractionalizedNFT.sol
Last active December 21, 2023 22:04
Fractionalize NFT Smart Contract - https://youtu.be/fDRQDP2xW7o
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/[email protected]/token/ERC20/ERC20.sol";
import "@openzeppelin/[email protected]/token/ERC721/IERC721.sol";
import "@openzeppelin/[email protected]/access/Ownable.sol";
import "@openzeppelin/[email protected]/token/ERC20/extensions/draft-ERC20Permit.sol";
import "@openzeppelin/[email protected]/token/ERC721/utils/ERC721Holder.sol";
contract FractionalizedNFT is ERC20, Ownable, ERC20Permit, ERC721Holder {
@Westenburg
Westenburg / Main
Created June 11, 2013 21:47
More advanced version of foggy bummer with particles, weather and bonuses. Two tabs - Particle and Main. New to GitHub so not sure if I've implemented correctly. Written for Codea
--# Particle
Particle = class()
--Class to deal with individual particles. Used for the starburst and raindrops
function Particle:init(x,y,xspd,yspd,type,fade)
-- you can accept and set parameters here
--map to the position of the 100 by 100 blocks in the sprite sheet. The location in the array refers to the type of particle
local map={}
map[1]={x=0, y=4}--stars
map[2]={x=2, y=4}--rain