Skip to content

Instantly share code, notes, and snippets.

View nara-l's full-sized avatar

Lawrence Nara nara-l

View GitHub Profile
@nara-l
nara-l / Markdown reference - dillinger.io
Created September 23, 2019 14:45
Markdown - dillinger.io
dillinger.io
@nara-l
nara-l / Missing write access
Created September 11, 2019 18:31
How to fix the "Missing write access" error when using npm
sudo chown -R $USER /usr/local/lib/node_modules
@nara-l
nara-l / node_use
Last active September 10, 2019 15:05
Use a different version of Node
# upgraded node and needed to downgrade later
nvm install 8.11.1 ( lower version)
nvm use 8.11.1 ( to use the lower version)
# expect this to work forward
Handlebars is a semantic web template system, started by Yehuda Katz in 2010.
Handlebars.js is a superset of Mustache, and can render Mustache templates in addition to Handlebars templates.
More: http://handlebarsjs.com/
1. Expressions.
1.1 Basic usage.
@nara-l
nara-l / iife-destructure-spreading
Last active May 23, 2019 15:54
Remove some element from an object with IIFE, destructuring, and spreading
# IIFE, destructuring, and spreading
# given and object of colors
const colors = {red: '#ff0000',green: '#00ff00', blue: '#0000ff' }
# We can remove blue without using a filter by doing this
((blue, ...rest) => rest)(colors)
@nara-l
nara-l / Gitlab to Github desktop
Last active March 6, 2020 19:28
Add gitlab to github desktop
1. https://itnext.io/how-to-use-github-desktop-with-gitlab-cd4d2de3d104
@nara-l
nara-l / basic.md
Created March 31, 2019 02:03 — forked from zenorocha/basic.md
New Firebase Auth vs Old Firebase Auth
@nara-l
nara-l / markdown-cheatsheet.md
Created March 29, 2019 13:43 — forked from jonschlinkert/markdown-cheatsheet.md
A better markdown cheatsheet.

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
@nara-l
nara-l / add_to_git_ignore_after_uploading
Created February 7, 2019 19:08
Add files to gitignore even after uploading to github
a. git rm -r --cached . # unstage all files on your local machine
b. add the said files to gitignore
c. git add . # add all files again
d. commit and push again or rebase. use rebase guide