Skip to content

Instantly share code, notes, and snippets.

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

nikhil nikkaroraa

👨‍💻
building!
View GitHub Profile
@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
@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/`
@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
@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.
@bradtraversy
bradtraversy / docker-help.md
Last active November 15, 2024 17:06
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@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; }
@nikkaroraa
nikkaroraa / new-keyword.md
Last active June 19, 2018 11:41
Things to clear up before jumping into the world of React

2. How "new" keyword works in JS

  function Dog(name) {
    if (name) { this.name = name; }
    this.speak = function() {
        return this.name + " says woof";
    }
  }
@nikkaroraa
nikkaroraa / wtf-proto.md
Last active June 19, 2018 11:42
Things to clear up before jumping into the world of React

1. Clearing the confusion between prototype, proto and [[Prototype]]

prototype

  function Dog(name) {
    this.name = name; 
    this.speak = function() {
        return this.name + " says woof";
    }
 }
@dmurawsky
dmurawsky / index.js
Last active May 22, 2024 19:01
How to make a page full height in Next.js
const FullHeightPage = () => (
<div>
Hello World!
<style global jsx>{`
html,
body,
body > div:first-child,
div#__next,
div#__next > div {
height: 100%;
@Geoff-Ford
Geoff-Ford / composing-software.md
Last active November 10, 2024 09:04
Eric Elliott's Composing Software Series

Eric Elliott's "Composing Software" Series

A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.

Edit: I see that each post in the series now has index, previous and next links. However, they don't follow a linear flow through all the articles with some pointing back to previous posts effectively locking you in a loop.