- Clone the array given below
person
into a new varibale namedclonedPerson
let person = [
{
input: { name: 'Ryan' },
output: { name: 'Ryan' },
},
{
input: { name: { first: 'Ryan', last: 'Haskell-Glatz' } },
/** | |
* 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 => !@#$%^&* | |
* |
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 |
person
into a new varibale named clonedPerson
let person = [
{
input: { name: 'Ryan' },
output: { name: 'Ryan' },
},
{
input: { name: { first: 'Ryan', last: 'Haskell-Glatz' } },
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
If you haven't already, install now's cli tool globally on your development environment:
/* ******************************************************************************************* | |
* 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" |
{ | |
"$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, |