Software
Git install
var request = require('superagent'); | |
async function getRequest() { | |
let body = await request('http://www.google.com'); | |
return body; | |
} | |
async function run() { | |
let result = await getRequest(); | |
console.log(result.text); |
Software
Git install
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<h1>Hello Webpack</h1> | |
<script src="bundle.js"></script> | |
</body> |
This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.
Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.
Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup
sudo apt-get remove mariadb-server | |
sudo apt-get remove --auto-remove mariadb-server | |
sudo apt-get purge mariadb-server | |
sudo apt-get purge --auto-remove mariadb-server |
while true; do echo 'run script'; sh ./run.sh; done |
npm install -g sails
npm install -g grunt-cli
npm install -g bower
sails new demo
cd demo
建議使用 Unix 環境進行本次課程, 如果是 Windows 學員,如果在以下環境安裝中遇到任何問題,歡迎直接來信給我 [email protected]
brew update | |
brew upgrade | |
brew install git | |
brew install wget | |
brew install curl | |
brew install nginx | |
# install nvm | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash | |
. ~/.nvm/nvm.sh |
var s= 10; | |
for(var i=0; i<=s; i++) { | |
console.log('run' + i); | |
try { | |
if (i===1) { return console.log('run end');} | |
} catch(e) { | |
return e; | |
} | |
} |