Skip to content

Instantly share code, notes, and snippets.

@long-nguyenxuan
long-nguyenxuan / quick-web-project-in-agile.md
Created August 6, 2022 10:59
Brief note about a small web project in Agile Scrum methodolgy

Brief talk about a small web project in Agile

trước khi bắt đầu dự án khảo sát nhu cầu, làm rõ nhu cầu

sprint 0

  • baseline requirement
  • chọn công nghệ
  • lập kế hoạch
@long-nguyenxuan
long-nguyenxuan / kient-thuc-di-lam.md
Created September 17, 2021 14:59
Tôi cần show cái gì trong CV để kiếm được 1 công việc (Java)

Tôi cần show cái gì trong CV để kiếm được 1 công việc (Java)

// vì có quá nhiều thuật ngữ nên về cơ bản mấy cái tui để giữa cặp nháy thì mọi người chịu khó Google nhé!

Với tư cách là người tuyển dụng, tui muốn xem

  • Clean code, cách đặt tên code trong sáng, SOLID, Lambdas (liên hệ anh Google để biết về SOLID và Lambda trong lập trình)
  • Bạn có áp dụng good/best pratices cho REST (best practice = các kinh nghiệm hay trong lập trình, liên hệ anh Google để biết về REST), repositories (lại liên hệ anh Gồ để biết về repositories, hoặc cụ thể hơn là Spring Rest Respositories) và mấy thứ liên quan
  • Có sử dụng build script, maven/gradle để thực hiện CI (ờ, nếu chưa biết mấy cái build script, maven/gradle, CI thì lại hỏi anh Gồ đi)
  • Unit test, test tích hợp (Integration Test), kiểm thử trực quan (end to end testing) được sử dụng phù hợp
@long-nguyenxuan
long-nguyenxuan / LogFile.udl.xml
Created October 25, 2020 12:00 — forked from mmdemirbas/LogFile.udl.xml
Custom log file syntax highlighting for Notepad++
<NotepadPlus>
<UserLang name="LogFile" ext="log">
<Settings>
<Global caseIgnored="yes" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">[(0])0</Keywords>
<Keywords name="Folder+"></Keywords>
@long-nguyenxuan
long-nguyenxuan / nginxproxy.md
Created June 17, 2020 04:35 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

/*
[CODE AUTO SKIP AD YOUTUBE]
Vào một buổi tối T6 ngập tràn trong task và bài tập Funix, đang vừa code vừa nghe nhạc piano nhẹ nhàng trên Youtube thì hết Baemin, Wix, Trade Option, SkillShare, Điện Máy Xanh,... đủ các brand, đủ các thể loại nhạc hú hét khiến mình mất tập trung, nó đòi hỏi mình phải vào click skip!
Thế là quyết định bỏ hết tất cả tìm cách tự động click skip (sau khi làm xong thì phát hiện google nhiều ng share code này và ngắn hơn, nhưng mà thôi, tự làm mới lên trình)
Đoạn code này rất dễ làm, ai pass CC1 là dư sức làm rồi
Đoạn code này không hề vi phạm luật hay đạo đức hay hack gì cả, chỉ đơn giản thay vì mình phải dùng "cơm" để click skip ads, thì nay mình dùng javascript click dùm :))
Logic rất đơn giản:
- Mỗi lần video start thì check xem có ads hay không
- Nếu có ads thì click skip, không có thì thôi
Code:
@long-nguyenxuan
long-nguyenxuan / git-submodule.md
Last active March 25, 2020 16:22
Git submodule blog

Git Submodule

Trong một số tình huống, bạn cần 1 folder nào đó trong dự án của bạn chứa source code của 1 dự án khác, do 1 team khác phát triển, trong 1 repo khác, ví dụ, cái folder other-team-app kia là cái bạn cần nó phải "hiện diện" trong repo của mình, nhưng nếu đơn thuần là copy&paste cái folder đấy vào, thì khi team kia update code, thì bạn không biết để mà update theo trong tình huống này, bạn cần đến git submodule

\my-project
    \other-team-app
    \my-code-dir 
 \my-other-code-dir 
# Get the submodule initially
git submodule add ssh://bla submodule_dir
git submodule init

# Time passes, submodule upstream is updated
# and you now want to update

# Change to the submodule directory
cd submodule_dir
Sub FitComments()
Dim xComment As Comment
For Each xComment In Application.ActiveSheet.Comments
xComment.Shape.TextFrame.AutoSize = True
Next
End Sub

Cuộc Sống / Nhật Bản Học Máy / Học Sâu / ML Lập Trình / Editor / Git / JS / Makefile