Starting a personal node project could be easy; starting a team node project could be challenging.
I am a developer currently working in SEEK Australia.
In my experience, common mistakes developer make when starting a projects are:
- No Linting
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"extends": ["react-app", "prettier"], | |
"plugins": ["react", "prettier"], | |
"parserOptions": { | |
"ecmaVersion": 2018 | |
}, |
Starting a personal node project could be easy; starting a team node project could be challenging.
I am a developer currently working in SEEK Australia.
In my experience, common mistakes developer make when starting a projects are:
On iTerm2 - Open Preferences > Profiles > Keys > Key Mappings > Presets > Select Natural Text Editing | |
- You can move a word backwards using Option โฅ + โ and a word forwards using Option โฅ + โ | |
- Move to the start of the line using fn + โ and to the end of the line with fn + โ. | |
- Also you can delete a word backwards using Option โฅ + โซ, delete the whole line using Command โ + โซ. | |
If the preset doesn't appear, reinstall iTerm2. If you installed it using Homebrew + Cask: | |
brew cask reinstall iterm2 |
// ๐ฅ Node 7.6 has async/await! Here is a quick run down on how async/await works | |
const axios = require('axios'); // promised based requests - like fetch() | |
function getCoffee() { | |
return new Promise(resolve => { | |
setTimeout(() => resolve('โ'), 2000); // it takes 2 seconds to make coffee | |
}); | |
} |
{ | |
"+1": "👍", | |
"-1": "👎", | |
"100": "💯", | |
"1234": "🔢", | |
"8ball": "🎱", | |
"ab": "🆎", | |
"abc": "🔤", | |
"abcd": "🔡", | |
"accept": "🉑", |
########## Install NGINX ############## | |
# Install software-properties-common package to give us add-apt-repository package | |
sudo apt-get install -y software-properties-common | |
# Install latest nginx version from community maintained ppa | |
sudo add-apt-repository ppa:nginx/stable | |
# Update packages after adding ppa |
<template> | |
<v-dialog v-model="dialog" :max-width="options.width" :style="{ zIndex: options.zIndex }" @keydown.esc="cancel"> | |
<v-card> | |
<v-toolbar dark :color="options.color" dense flat> | |
<v-toolbar-title class="white--text">{{ title }}</v-toolbar-title> | |
</v-toolbar> | |
<v-card-text v-show="!!message" class="pa-4">{{ message }}</v-card-text> | |
<v-card-actions class="pt-0"> | |
<v-spacer></v-spacer> | |
<v-btn color="primary darken-1" text @click.native="agree">Yes</v-btn> |
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateRegionsTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
// ๐ฅ Node 7.6 has async/await! Here is a quick run down on how async/await works | |
const axios = require('axios'); // promised based requests - like fetch() | |
function getCoffee() { | |
return new Promise(resolve => { | |
setTimeout(() => resolve('โ'), 2000); // it takes 2 seconds to make coffee | |
}); | |
} |