Skip to content

Instantly share code, notes, and snippets.

@lolo266
lolo266 / gitcom.md
Created September 27, 2020 08:21 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

git init
@lolo266
lolo266 / multiple_ssh_setting.md
Created September 21, 2020 03:32 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@lolo266
lolo266 / .gitignore
Created September 19, 2020 12:38 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@lolo266
lolo266 / http-apis.md
Created September 10, 2020 23:49 — forked from Rich-Harris/http-apis.md
Next-gen Node HTTP APIs

I saw this poll on Twitter earlier and was surprised at the result, which at the time of writing overwhelmingly favours option 1:

Screen Shot 2020-09-10 at 10 19 22 AM

I've always been of the opinion that the (req, res, next) => {} API is the worst of all possible worlds, so one of two things is happening:

  • I'm an idiot with bad opinions (very possibly!)
  • People like familiarity
@lolo266
lolo266 / functional-utils.js
Created July 7, 2020 16:28 — forked from bendc/functional-utils.js
A set of pure ES2015 functions aimed to make functional JavaScript more idiomatic.
// array utils
// =================================================================================================
const combine = (...arrays) => [].concat(...arrays);
const compact = arr => arr.filter(Boolean);
const contains = (() => Array.prototype.includes
? (arr, value) => arr.includes(value)
: (arr, value) => arr.some(el => el === value)
@lolo266
lolo266 / reactjs-interview-tips.md
Created July 7, 2020 09:26 — forked from paulnguyen-mn/reactjs-interview-tips.md
Bí kíp cho buổi phỏng vấn ReactJS thành công 🎉

Bí kíp cho buổi phỏng vấn ReactJS thành công 🎉

From unplash.com

AGENGA:

  1. Một vài lưu ý chung
  2. Ôn tập kiến thức JS/ReactJS
  3. Cày thuật toán, giải thuật
  4. Tìm hiểu về công ty mà mình xin ứng tuyển
@lolo266
lolo266 / git-end-to-end-commands.md
Created July 7, 2020 09:26 — forked from paulnguyen-mn/git-end-to-end-commands.md
Những lệnh git sử dụng từ lúc nhận task cho đến khi tạo PR 😍

GIT - CÁC LỆNH ĐƯỢC DÙNG TỪ LÚC NHẬN TASK CHO TỚI LÚC TẠO PR 🎉

0. Nhận task, ví dụ ở đây task có id là 123

  • Tí nữa, đọc thấy tạo nhánh có số 123 thì các bạn hiểu ngầm nó chính là taskId nhen.
  • Ví dụ team mình dev trên nhánh develop.

1. Lấy code mới nhất trên branch develop

# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help