git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
function round(number, decimalPlaces) { | |
return +(Math.round(number + 'e+' + decimalPlaces) + 'e-' + decimalPlaces); | |
} |
server { | |
server_name yoursite.com; | |
root /usr/share/html; | |
index index.html; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} | |
} |
/** | |
* Generates a GUID string. | |
* @returns {String} The generated GUID. | |
* @example af8a8416-6e18-a307-bd9c-f2c947bbb3aa | |
* @author Slavik Meltser (slavik@meltser.info). | |
* @link http://slavik.meltser.info/?p=142 | |
*/ | |
function guid() { | |
function _p8(s) { | |
var p = (Math.random().toString(16)+"000000000").substr(2,8); |
//region Get the Margin | |
var cost = 5; | |
var sell = 10; | |
var margin = 0; | |
// Original Formula | |
margin = ((sell - cost) / sell) * 100; | |
console.log('[Original]Margin', margin); | |
// Shorthand Formula |
#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.
Run the following commands in sequence.
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
Original Content: https://nodesource.com/blog/running-your-node-js-app-with-systemd-part-1/
Running Your Node.js App With Systemd - Part 1 by: Chris Lea Chris Lea in How To on Nov 01 2016
Node.js SHARE
Original content: https://nodesource.com/blog/running-your-node-js-app-with-systemd-part-2/
Running Your Node.js App With Systemd - Part 2 by: Chris Lea Chris Lea in How To on Nov 10 2016
Node.js SHARE
var canvas = document.getElementById('canvas'); | |
var ctx = canvas.getContext("2d"); | |
var myPoints = [ | |
[37.772,-122.214], | |
[21.291, -157.821], | |
[-18.142, 178.431], | |
[-27.467, 153.027] | |
] |
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] | |
* | |
* Based on Sprinter and grbl. | |
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or |