Skip to content

Instantly share code, notes, and snippets.

View ikushaldave's full-sized avatar
🎯
Focusing

Kushal Dave ikushaldave

🎯
Focusing
View GitHub Profile
@ikushaldave
ikushaldave / passwordRegex.js
Created February 12, 2021 16:44 — forked from HarishChaudhari/passwordRegex.js
Password validation RegEx for JavaScript
/**
* Password validation RegEx for JavaScript
*
* Passwords must be
* - At least 8 characters long, max length anything
* - Include at least 1 lowercase letter
* - 1 capital letter
* - 1 number
* - 1 special character => !@#$%^&*
*
@ikushaldave
ikushaldave / .zshrc
Created January 26, 2021 12:01 — forked from Thiht/.zshrc
export PATH=$HOME/.bin:/usr/local/bin:$PATH
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="robbyrussell"
plugins=(
dotenv
git
urltools
)
source $ZSH/oh-my-zsh.sh
@ikushaldave
ikushaldave / cloning-objects-and-array.md
Created January 12, 2021 18:33 — forked from nnnkit/cloning-objects-and-array.md
Cloning Array and Objects
  1. Clone the array given below person into a new varibale named clonedPerson
let person = [
  {
    input: { name: 'Ryan' },
    output: { name: 'Ryan' },
  },
  {
    input: { name: { first: 'Ryan', last: 'Haskell-Glatz' } },
@ikushaldave
ikushaldave / express-vercel.md
Created January 10, 2021 20:10 — forked from akhilome/express-vercel.md
express-vercel

Setting Up Vercel for APIs with Express

This gist would offer a step-by-step guide of some sort for quickly setting up a "serverless" API using expressjs, and Vercel's Now platform for local development with now dev and eventual prod deployment now --prod

Install Now CLI

If you haven't already, install now's cli tool globally on your development environment:

@ikushaldave
ikushaldave / nodejs-cheatsheet.js
Created November 5, 2020 13:46 — forked from LeCoupa/nodejs-cheatsheet.js
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
let user = "global";
if (true) {
let user = "inside if";
console.log(user); // "inside it"
}
function letScope() {
let user = "inside function";
console.log(user) // "inside function"
var user = "global";
function scope() {
var user = "function scope"
console.log(user); // "function scope"
}
scope();
console.log(user); // "global"
@ikushaldave
ikushaldave / settings.json
Created July 10, 2020 04:53
Window Terminal Setting
{
"$schema": "https://aka.ms/terminal-profiles-schema",
// Change Whatever Profile You Have to Make Default By Changing defaultProfile Value with GUID Value of Profile Starting at (Line 12)
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"copyOnSelect": true,