Skip to content

Instantly share code, notes, and snippets.

View sagarduwal's full-sized avatar
🤐

Sagar Duwal sagarduwal

🤐
View GitHub Profile

Ubuntu 22.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 22.04 for deep learning.


Install Ubuntu 22.04

@sagarduwal
sagarduwal / benji-bananas-pass-nft-abi.json
Created May 4, 2022 06:59
Benji Bananas Membership Pass NFT ABI
[{"inputs":[{"internalType":"contract IForwarderRegistry","name":"forwarderRegistry","type":"address"},{"internalType":"address","name":"universalForwarder","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":false,"internalType":"bool","name":"_approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseMetadataURI","type":"string"}],"name":"BaseMetadataURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"collectionId","type":"uint256"},{"indexed":true,"internalType":"bool","name":"fungible","type":"bool"}],"name":"CollectionCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"Min
@sagarduwal
sagarduwal / CDHInventory_flat.sol
Created September 6, 2021 08:42
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/utils/Context.sol
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
@sagarduwal
sagarduwal / CDHInventoryMeta...factory...CDHFactory.sol
Created July 30, 2021 03:17
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.8+commit.0bbfe453.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.6 <0.8.0;
import "../factory/RandomFactory.sol";
import "../factory/ChestFactory.sol";
import "../factory/PoolFactory.sol";
contract CDHFactory is RandomFactory, ChestFactory, PoolFactory {
}
@sagarduwal
sagarduwal / CDHInventoryMeta...gameinventory...artifacts...CDHInventory_metadata.json
Created July 29, 2021 08:41
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.6+commit.7338295f.js&optimize=true&runs=200&gist=
{
"compiler": {
"version": "0.7.6+commit.7338295f"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
@sagarduwal
sagarduwal / StructExampleFull.sol
Created July 11, 2021 20:23
Full example of Struct in Solidity
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract StructDemo {
struct User {
uint256 level;
uint256 status;
}
mapping(address => User) public userList;
@sagarduwal
sagarduwal / StructExample.sol
Created July 11, 2021 18:57
Solidity Struct Example
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract StructDemo {
struct User {
uint256 level;
uint256 status;
}
mapping(address => User) public userList;