Skip to content

Instantly share code, notes, and snippets.

View cleancoindev's full-sized avatar
🦦
OtterMarkets eh? *rolls eyes*

cleancoindev

🦦
OtterMarkets eh? *rolls eyes*
View GitHub Profile
@cleancoindev
cleancoindev / player_movement.gml
Created November 27, 2023 09:44 — forked from ilmaestro/player_movement.gml
gamemaker player movement script
/// Player movement script
/// arg0 = velocity
/// should be called in a step
{
// Local vars & args
velocity = argument[0];
xVel = 0;
yVel = 0;
// check keyboard events
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;
/*
* HuckleberryFinance
* Reflect Token implementation
* App: https://huckleberry.finance
* GitHub: https://github.com/huckleberryDex
*/
@cleancoindev
cleancoindev / High-Stakes Roulette Example
Created July 17, 2023 03:07 — forked from gorgos/High-Stakes Roulette Example
Example for a contract for playing high-stakes Roulette on the blockchain
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract BankOwned {
address public bankAddress;
constructor() {
bankAddress = msg.sender;
}
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/phaser@3.15.1/dist/phaser-arcade-physics.min.js"></script>
</head>
<body>
<script>
var config = {
type: Phaser.AUTO,
@cleancoindev
cleancoindev / litecoin fork
Created May 28, 2023 23:48 — forked from samjoshuva/litecoin fork
how to fork and deploy litecoin
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
sudo apt-get install libminiupnpc-dev
sudo apt-get install libzmq3-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
@cleancoindev
cleancoindev / AvaxGods.sol
Created May 28, 2023 01:29 — forked from adrianhajdin/AvaxGods.sol
Avax Gods - Online Multiplayer Web3 NFT Card Game
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;
import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';
/// @title AVAXGods
/// @notice This contract handles the token management and battle logic for the AVAXGods game
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cleancoindev
cleancoindev / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created January 16, 2023 00:21
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.6.12+commit.27d51765.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
# git clone https://github.com/NVlabs/stylegan2
import os
import numpy as np
from scipy.interpolate import interp1d
from scipy.io import wavfile
import matplotlib.pyplot as plt
import PIL.Image
import moviepy.editor
import dnnlib
@cleancoindev
cleancoindev / ERC20Token.sol
Created July 31, 2022 00:43 — forked from JonPizza/ERC20Token.sol
ERC20 Token
// SPDX-License-Identifier: UNLICENCED
pragma solidity ^0.8.7;
contract ERC20Token {
string public constant name = "Token";
string public constant symbol = "TKN";
uint8 public constant decimals = 18;
event Approval(address indexed tokenOwner, address indexed spender, uint tokens);