Skip to content

Instantly share code, notes, and snippets.

View ironidevi's full-sized avatar
🌴
On vacation

ironidevi

🌴
On vacation
View GitHub Profile
@ironidevi
ironidevi / click-to-take-a-screenshot-download-it.markdown
Created July 16, 2025 19:38
Click to Take a Screenshot & Download it!
@ironidevi
ironidevi / pancake.js
Created March 20, 2025 16:13 — forked from phackt/pancake.js
pancake.js
const ethers = require(`ethers`)
const { ChainId, Token, TokenAmount, Fetcher, Pair, Route, Trade, TradeType, Percent } =
require(`@pancakeswap-libs/sdk`);
const Web3 = require(`web3`);
const { JsonRpcProvider } = require("@ethersproject/providers");
require(“dotenv”).config()
const provider = new JsonRpcProvider(`https://bsc-dataseed1.binance.org/`);
const web3 = new Web3(`wss://apis.ankr.com/wss/c40792ffe3514537be9fb4109b32d257/946dd909d324e5a6caa2b72ba75c5799/binance/full/main`);
@ironidevi
ironidevi / countdown-to-new-year-on-solar-system.markdown
Created December 31, 2024 11:47
Countdown to New Year on Solar System

Countdown to New Year on Solar System

Updated (07/20/2021):

  • Improvement to view complete spin around the sun.

  • Earth Solar System sector centered auto in screen.

  • Dates of all equinoxes and solstices.

@ironidevi
ironidevi / paginate.plugin.js
Created October 23, 2022 22:07
mongodb pagination
/* eslint-disable no-param-reassign */
const getNextPage = (page, limit, totalResults) => {
if (totalResults / limit > page) {
return page + 1;
}
return null;
};
const getPreviousPage = (page) => {