Skip to content

Instantly share code, notes, and snippets.

View abhagsain's full-sized avatar
💻
Building

Anurag Bhagsain abhagsain

💻
Building
View GitHub Profile
@rain-1
rain-1 / LLM.md
Last active May 5, 2024 07:13
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@hirbod
hirbod / app-release.md
Last active August 22, 2023 06:21
How to get your App through the App/Play store safely

How to Successfully Publish Your App on the App Store or Google Play

As someone who has released many apps starting in 2015 using frameworks such as Cordova and Ionic, and more recently using React Native and Expo, I have learned that the rules for publishing apps can change frequently and can sometimes be challenging to navigate. With that in mind, I want to provide a brief guide to help others navigate the process. While this guide may not cover every aspect of publishing an app, it does cover general tips and information that should be useful for anyone looking to release their app on the App Store or Google Play.

Metadata

Keywords, Description, Screenshots, App Name, Promo Videos

There are significant differences between Apple and Google when it comes to metadata. Apple is generally stricter than Google, so it is advisable to follow Apple's guidelines to ensure the best chances of success on both platforms. Here are some tips to keep in mind:

  1. Keep your screenshots and promo videos separat
@abhagsain
abhagsain / .vimrc
Last active April 21, 2024 16:19
Install OhMySh, PowerLeve10K, Autosuggestion and Syntax highlighting On Ubuntu
# set relative line number in vim
set number
set rnu
@abhagsain
abhagsain / deleteProcessWindows.sh
Last active August 16, 2023 05:14
How to kill process on port in Windows
```
# Run this in CMD only and not in bash
netstat -ano | findstr :3001
# This will give
TCP 0.0.0.0:3001 0.0.0.0:0 LISTENING 24928 👈
TCP [::]:3001 [::]:0 LISTENING 24928
@abhagsain
abhagsain / README.md
Created December 20, 2020 04:08
How to debug Typescript in VSCode

How to Debug TypeScript in VSCode

It was a pain for me to figure out how to debug TS in VSCode. Creating this doc for my reference and it might help you as well.

Have this in your tsconfig.json

 "sourceMap": true,  /* SUPER-DUPER Important Generates corresponding '.map' file. */
 "outFile": "./",    /* Concatenate and emit output to single file. */
@nma
nma / windowsize.js
Created February 22, 2017 21:31
ReactJS get window sizes
constructor(props) {
super(props);
this.state = { height: 512 };
this.updateWindowDimensions = this.updateWindowDimensions.bind(this);
}
componentDidMount() {
this.updateWindowDimensions();
window.addEventListener("resize", this.updateWindowDimensions.bind(this));
}
@joshnuss
joshnuss / app.js
Last active March 4, 2024 00:01
Express.js role-based permissions middleware
// the main app file
import express from "express";
import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db)
import authenticate from "./authentication"; // middleware for doing authentication
import permit from "./authorization"; // middleware for checking if user's role is permitted to make request
const app = express(),
api = express.Router();
// first middleware will setup db connection