Skip to content

Instantly share code, notes, and snippets.

View nikkaroraa's full-sized avatar
👨‍💻
building!

nikhil nikkaroraa

👨‍💻
building!
View GitHub Profile
@nikkaroraa
nikkaroraa / this-in-function.md
Last active June 19, 2018 12:57
Things to clear up before jumping into the world of React

4. How "this" keyword works with functions JS

To access any variable or any method that is a part of a JavaScript object, we use "this" keyword.

For example,

function Dog(name) {
 if (name) { this.name = name; }
@bradtraversy
bradtraversy / docker-help.md
Last active July 10, 2025 09:14
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@rajatk16
rajatk16 / ._Setup Javascript Project with ES6 + Babel 7 + ESLint + Airbnb + Prettier
Created March 16, 2020 15:11 — forked from vukhanhtruong/._README.md
Setup Javascript / Nodejs Project with ES6 + Babel 7 + ESLint + Airbnb + Prettier
# Project Setup
Create a directory and run the following command.
```sh
npm init
```
For this tutorial, I will be adding an index.js file to the `src` folder, and this will be our entry point.
Our file directory should look like this.
@tchayen
tchayen / main.js
Last active September 5, 2021 08:54
/**
* Usage:
* 1. Paste this into a main.js file in some empty directory.
* 2. Run: `yarn add web3 ethers abi-decoder`.
* 3. Go to contract's page
* https://etherscan.io/address/0x25ed58c027921E14D86380eA2646E3a1B5C55A8b
* and then to code and then copy "Contract ABI" and save it in the same dir
* as abi.json.
* 4. Create empty file backup.txt.
* 5. Download CSV data with transactions from etherscan page and save as
@ezinaz
ezinaz / gist:dd0682512daab268a0324870a3ff5c90
Last active September 13, 2021 03:34
Candy Machine instructions
# 🤔 Prerequisites
Lerna
`npm install --global lerna`
ts-node
`npm install --global ts-node`
node-js
`https://nodejs.org/en/download/current/`
@jozanza
jozanza / sol_devnet_faucet.md
Last active January 22, 2024 12:48
Use Cloudflare Workers to make a Solana Devnet Faucet.

Solana Devnet Faucet

Here's a quick walkthrough on how to use Cloudflare Workers to make a Solana Devnet Faucet.

Get started by setting up your workspace with a few commands

cargo install wrangler # or npm install -g @cloudflare/wrangler
wrangler generate sol-devnet-faucet https://github.com/cloudflare/rustwasm-worker-template/
cd sol-devnet-faucet