Skip to content

Instantly share code, notes, and snippets.

@apoorvlathey
apoorvlathey / ERC165.sol
Created November 6, 2023 05:30 — forked from cygaar/ERC165.sol
RareSkills Challenge #3
//SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.15;
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
contract Award is ERC721 {
constructor() ERC721('Award', 'A') {
_mint(msg.sender, 1337);
}
@apoorvlathey
apoorvlathey / tampermonkey-twitter-report.js
Last active March 14, 2024 17:08 — forked from banteg/twitter-report.js
Tampermonkey userscript: arc boost to report spam on twitter
// ==UserScript==
// @name Twitter Report
// @namespace http://tampermonkey.net/
// @version 0.1
// @description arc boost to report spam on twitter
// @author banteg
// @match *://twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@apoorvlathey
apoorvlathey / generic.org
Created January 29, 2022 05:11 — forked from hrkrshnn/generic.org
Some generic writeup about common gas optimizations, etc.

Upgrade to at least 0.8.4

Using newer compiler versions and the optimizer gives gas optimizations and additional safety checks for free!

The advantages of versions 0.8.* over <0.8.0 are:

  • Safemath by default from 0.8.0 (can be more gas efficient than some library based safemath.)
  • Low level inliner from 0.8.2, leads to cheaper runtime gas. Especially relevant when the contract has small functions. For