Skip to content

Instantly share code, notes, and snippets.

View dennis-gonzales's full-sized avatar
💻
coding

Dennis Gonzales dennis-gonzales

💻
coding
View GitHub Profile
@dennis-gonzales
dennis-gonzales / private_fork.md
Created August 28, 2025 07:11 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

// SPDX-License-Identifier: GPL-3.0
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
pragma solidity >=0.7.0 <0.9.0;
contract P33R is ERC721, Ownable(msg.sender) {
uint256 private _currentTokenId = 0;
@dennis-gonzales
dennis-gonzales / esm-package.md
Created August 9, 2023 02:30 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@dennis-gonzales
dennis-gonzales / Miniconda.md
Last active October 18, 2024 04:08
Python for Data Science

Install Python3

apt install -y software-properties-common

apt-get update -y; apt upgrade -y

add-apt-repository -y ppa:deadsnakes/ppa

apt-get update &amp;&amp; apt-cache search python3.1

Project Setup (ESlint, TypeScript, Husky, LintStaged cheatsheet)

Creating ESLint config

# configures and installs eslint
npm init @eslint/config

Creating Typescript config

@dennis-gonzales
dennis-gonzales / SSH Configuration with Git.MD
Last active March 5, 2025 00:19
SSH configuration and cheat-sheet
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
contract Bank {
enum Action { Deposit, Transfer, Withdrawal }
struct Transaction {
string details;
uint timestamp;
@dennis-gonzales
dennis-gonzales / basics.sol
Last active March 18, 2023 10:22
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.0+commit.26b70077.js&optimize=true&gist=
// import openzeppelin contract in remix
// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol";
// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol";
// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
pragma solidity ^0.6.0;
contract Inbox {
string private _message;
@dennis-gonzales
dennis-gonzales / sample.md
Last active August 28, 2020 01:56 — forked from bradtraversy/sample.md
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic