flex-direction justify-content flex-wrap align-items align-content
order flex
server { | |
listen 80 default_server; | |
server_name _; | |
location / { | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_pass http://$host:3000; #port where you are serving your express app. |
{ | |
"@twitter-oauth-client-secret-development": "uwjAMUwcX8ZhhYq0Vlnq2fLNwV3CfONB8Tjzo2LW42JlVc2uKJ", | |
"@facebook-oauth-client-id-development": "231715924020859", | |
"@facebook-oauth-client-secret-development": "0c3a5b3521fe79636b568f3f4db67f2b", | |
"@google-oauth-client-secret-development": "i7H7ZLfntkIEp7kyyNsvyH3O", | |
"@github-oauth-client-secret-development": "789f3a4b5772e978acd135fe7c86886e62f688c7", | |
"@session-cookie-secret": "this-is-an-example-secret", | |
"@api-token-secret": "this-is-another-example-secret-string" | |
} |
thee will be a like schema | |
post(reference => post) | |
like_by (reference => user) | |
like_time (current time) | |
// POST LIKED OR NOT [REQ = POST] | |
// POST http://example.com/api/liked-or-not | |
payload { | |
post: 58344939djghfkjjdjfidj879 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div class="reviews"> |
// jshint esnext: true | |
const array1 = [1,2,3]; | |
const array2 = [4,5,6]; | |
const newArray = array1.concat(array2); | |
// Concat using es6 spread... | |
// const newArray = [...array1, ...array2]; | |
console.log(`Concat ===> ${newArray}`); |
// jshint esnext: true | |
const courses = ['ReactJs', 'javaScript', 'computer Fundamentals']; | |
// For Each | |
const newArray = []; | |
courses.forEach(course => newArray.push(`${course} Completed`)); | |
console.log(newArray); |
// jshint esnext: true | |
var calc = { | |
plus: ((a,b) => a + b), | |
minus: ((a,b) => a - b), | |
multiply: ((a,b) => a * b), | |
divide: ((a,b) => a / b) | |
} | |
console.log(process.argv); | |
let num1 = Number.parseInt(process.argv[2]); | |
let sign = process.argv[3]; | |
let num2 = Number.parseInt(process.argv[4]); | |
// console.log(x + y); | |
if (sign === '+') { | |
console.log(`Summation is ${num1 + num2}`); | |
} else if (sign === '-') { |