Skip to content

Instantly share code, notes, and snippets.

@TasfiqulTapu
TasfiqulTapu / get_itch_index.js
Last active August 25, 2024 11:10
Find rank in itch.io game jam "/entries" tab
// Please, make sure it is sorted by Popularity, Most rated, least rated or Karma
// Paste in your game id inside the string
const ID = "YOUR_ITCH_GAME_ID"
function find_rank(id){
let index = 0;
let quit = false;
// load all the games in list and find the game with matching id
document.querySelectorAll(".index_game_cell_widget").forEach((child, )=>{
@TasfiqulTapu
TasfiqulTapu / NodeJS CLI tool on NPM.md
Last active September 4, 2022 15:58
Create a nodejs CLI tool that is installable from NPM

Nodejs CLI tool

  1. Start off by first making a node project that can be operated from cli. You can get the cli arguments from process.argv which is an array containing all the command line arguments passed in.

  2. Put #! /usr/bin/env node on top of your index file(entry point for your project). This is called shabang and let's the OS know what to run the file with.

  3. Add the following to your package.json

"bin": {