One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| // config/passport.js | |
| // load all the things we need | |
| var LocalStrategy = require('passport-local').Strategy; | |
| var mysql = require('mysql'); | |
| var connection = mysql.createConnection({ | |
| host : 'localhost', | |
| user : 'root', |
| // === Spread Operator | |
| //Ex1: | |
| Math.max(5, 6, 8, 9, 11, 999); | |
| // 999 | |
| //Ex2: | |
| const numbers = [5, 6, 8, 9, 11, 999]; | |
| Math.max(...numbers) |
| class Node { | |
| constructor(value) { | |
| this.value = value; | |
| this. next = null; | |
| } | |
| } | |
| class LinkedList { | |
| constructor(value) { |
| function strRev(str) { | |
| let left = 0; | |
| let right = str.length-1; | |
| const strArr = str.split(""); | |
| while (left < right) { | |
| let tempLeft = strArr[left]; | |
| let tempRight = strArr[right]; | |
| strArr[left] = tempRight; | |
| strArr[right] = tempLeft; |
| function stairs(num) { | |
| for (let row = 0; row< num; row++) { | |
| let level = ""; | |
| for (let column = 0; column< num; column++){ | |
| if (column <= row) { | |
| level += "#"; | |
| } | |
| else { | |
| level += " "; |
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
| You've now created an alias to git log called git lg that will display the nicer output showed before. Try it out by typing git lg (or git lg -p to see the lines that have changed). | |
| https://dev.to/christopherkade/up-your-git-game-and-clean-up-your-history-4j3j?utm_source=digest_mailer&utm_medium=email&utm_campaign=digest_email |