Git Commands:
Revert all local file changes: git checkout . git clean -f (untracked files) git clean -d (untracked directories)
Create new branch: git checkout -b develop git push -u origin develop (create remote branch but create local branch)
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Start Expo dev server", | |
"type": "shell", | |
"command": "cd ./apps/mobile && yarn start", | |
"presentation": { | |
"reveal": "always", | |
"panel": "new", |
// Model class approach | |
class UserModel { | |
constructor(data) { | |
this.data = data; | |
} | |
getSecondaryAddress() { | |
this.data.address.filter(address => address.secondary); | |
} |
wmaurer.vscode-jumpy // Follow instruction to setup keybindings.json | |
EditorConfig.EditorConfig | |
RobinMalfait.prettier-eslint-vscode | |
TimonVS.ReactSnippetsStandard | |
TwentyChung.jsx | |
Zignd.html-css-class-completion | |
abusaidm.html-snippets | |
akamud.vscode-javascript-snippet-pack | |
alexandersage.angular1-code-snippets | |
christian-kohler.path-intellisense |
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.fontFamily": "Menlo, Consolas, Monaco, 'Courier New', monospace", | |
"editor.fontSize": 14, | |
"editor.tabSize": 2, | |
"files.exclude": { | |
"**/.git": true, | |
"**/dist": false, | |
"**/coverage": false, | |
"**/.DS_Store": true, |
// Immutable specfic object in the array | |
onUpdateItem(index, e) { | |
const options = [...this.state.options]; | |
const newObject = { | |
...options[index], | |
[fieldName]: event.target.value | |
}; | |
options.splice(index, 1, newObject); | |
this.setState({ options }); |
// Place your key bindings in this file to overwrite the defaults | |
[{ | |
"key": "shift+cmd+d", | |
"command": "editor.action.copyLinesDownAction" | |
}, { | |
"key": "cmd+l", | |
"command": "expandLineSelection" | |
}, { | |
"key": "cmd+ctrl+up", | |
"command": "editor.action.moveLinesUpAction" |
Git Commands:
Revert all local file changes: git checkout . git clean -f (untracked files) git clean -d (untracked directories)
Create new branch: git checkout -b develop git push -u origin develop (create remote branch but create local branch)
(IE9+) | |
.center-horizontal { | |
position: relative; | |
left: 50%; | |
transform: translateX(-50%); | |
} | |
.center-vertical { | |
position: relative; |
src :https://www.quora.com/What-are-the-most-interesting-HTML-JS-DOM-CSS-hacks-that-most-web-developers-dont-know-about | |
*:nth-child(n) { background-color: rgba(255,0,0,.2); } | |
or | |
* { background-color: rgba(255,0,0,.2); } | |
* * { background-color: rgba(0,255,0,.2); } | |
* * * { background-color: rgba(0,0,255,.2); } |
[user] | |
name = Raja Jaganathan | |
email = rajajflex@gmail.com | |
[alias] | |
aa = add --all | |
br = branch | |
ca = commit --amend | |
cb = checkout -b | |
cm = commit -a --amend -C HEAD | |
ci = commit -a -v |