This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This is for an expressjs node app, it uses npm + bower packages and pm2 to start the app | |
# [pm2](https://github.com/Unitech/pm2) | |
# Assumes you've created a [bare git repo](https://git-scm.com/book/en/v2/Git-on-the-Server-Getting-Git-on-a-Server) with on your server with git init --bare | |
# Adapted from http://javascript.tutorialhorizon.com/2014/08/17/push-to-deploy-a-nodejs-application-using-git-hooks/ | |
PORT=1337 | |
APP_NAME="app-name" | |
APP_ROOT="/var/www/app" |
I hereby claim:
- I am theatlasroom on github.
- I am theatlasroom (https://keybase.io/theatlasroom) on keybase.
- I have a public key whose fingerprint is 7198 1644 007A F9D1 7786 7D54 F276 AC63 BD03 DA6E
To claim this, I am signing this object:
A peer to peer network of virtual machines that developers can utilise to develop distributed applications (Dapps).
Dapps can function as programs that contain rules to be executed when certain conditions are met (similar to a contract).
Ethereum uses its own decentralised blockchain to store and execute these Dapps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const items = 10 | |
async function delayedFunc(delay, i) { | |
return new Promise((resolve, reject) => { | |
console.log(`Start executing ${i}`) | |
setTimeout(() => { | |
console.log(`Finished ${i}`) | |
resolve() | |
}, delay) | |
}) |