Skip to content

Instantly share code, notes, and snippets.

View frankiefab100's full-sized avatar
πŸ‘¨β€πŸ’»
Learning, relearning and unlearning

Franklin Ohaegbulam frankiefab100

πŸ‘¨β€πŸ’»
Learning, relearning and unlearning
View GitHub Profile
@mmyoji
mmyoji / migrate-npm-to-pnpm.md
Last active September 18, 2026 08:00
Migrate npm to pnpm
// To run this script, you can either:
// 1. Go to sessionize.com in your browser, open the browser console, and paste the following script
// 2. Run it locally in Node.JS and comment the following imports in the begining of the file to use JSDom as a dom parser.
// const jsdom = require("jsdom")
// const { JSDOM } = jsdom
// global.DOMParser = new JSDOM().window.DOMParser
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
const now = new Date();
@dabit3
dabit3 / marketplace.sol
Last active April 29, 2025 06:06
NFT Marketplace Smart Contract (V2)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "hardhat/console.sol";
contract NFTMarketplace is ERC721URIStorage {
@akshatamohanty
akshatamohanty / simple-lottery.sol
Last active November 27, 2021 04:18
solidity-saturday-1-simple-lottery
/**
*Submitted for verification at Etherscan.io on 2021-11-26
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
contract Lottery {
uint MAX_PLAYERS = 3;
address manager;
@tykurtz
tykurtz / grokking_to_leetcode.md
Last active September 24, 2026 03:31
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@Gustavo-Kuze
Gustavo-Kuze / force-ctrl-c-v.md
Last active September 9, 2026 09:23
Enable copy and paste in a webpage from the browser console
javascript:(function(){
  allowCopyAndPaste = function(e){
  e.stopImmediatePropagation();
  return true;
  };
  document.addEventListener('copy', allowCopyAndPaste, true);
  document.addEventListener('paste', allowCopyAndPaste, true);
  document.addEventListener('onpaste', allowCopyAndPaste, true);
})(); 
@wojteklu
wojteklu / clean_code.md
Last active September 26, 2026 03:26
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules