Skip to content

Instantly share code, notes, and snippets.

View dungpxdev's full-sized avatar
🦖
Focusing

Dung Phan dungpxdev

🦖
Focusing
View GitHub Profile
@paulnguyen-mn
paulnguyen-mn / reactjs-interview-tips.md
Last active October 11, 2025 20:28
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
@paulnguyen-mn
paulnguyen-mn / reactjs-learning-path-2020.md
Created June 25, 2020 15:46
Lộ trình học ReactJS cơ bản cho người mới bắt đầu 2020 🚀

Lộ trình học ReactJS cơ bản cho người mới bắt đầu 2020 🎉

  • Đôi tượng: mới bắt đầu học ReactJS mà không biết học những gì.
  • Yêu cầu kiến thức:
@slzdevsnp
slzdevsnp / GenericsMethodsMain.java
Last active May 8, 2021 16:31
[java generics] #java #generics #lang
package packt.j9fprog.genericMethods;
import java.util.List;
public class GenPair<K,V> {
private final K left;
private final V right;
public GenPair(K left, V right) {
this.left = left;
this.right = right;
@paulnguyen-mn
paulnguyen-mn / git-end-to-end-commands.md
Last active April 28, 2025 03:59
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

@nguyenthanhcong101096
nguyenthanhcong101096 / awesome-interview-questions.md
Last active May 30, 2024 06:44
awesome-interview-questions
@michaellihs
michaellihs / patterns-antipatterns-cicd.md
Last active January 7, 2024 10:12
Patterns and Anti-Patterns for CI/CD

Patterns and Anti-Patterns for CI/CD

The Developer Experience

  • The developer journey
    • visualize devs' emotions during their workflow
  • make sure to provide a good experience for your devs as well (not only for customers and users)

Working Models

@bradtraversy
bradtraversy / mongodb_cheat_sheet.md
Last active October 23, 2025 10:30
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@ammmze
ammmze / ConverterDateAndJavaTime.java
Last active June 7, 2024 09:27
opencsv HeaderColumnNameAndOrderMappingStrategy
package com.example.csv;
import com.opencsv.bean.ConverterDate;
import com.opencsv.exceptions.CsvDataTypeMismatchException;
import java.lang.reflect.InvocationTargetException;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.Temporal;
import java.util.Locale;
@ilya-khadykin
ilya-khadykin / JavaJenerics.java
Last active May 8, 2021 16:30
Java Generics #generics #java
List<String> strings = new ArrayList<>();
strings.add("Hello");
strings.add("World");
// strings.add(new Date()); #1
// Integer i = strings.get(0); #1
for (String s : strings) { //#2
System.out.printf("%s has length %d%n", s, s.length());
}
// 1 - won't comile
// 2 - for-each loop knows the contained data type is String
@soulmachine
soulmachine / jwt-expiration.md
Last active June 19, 2025 15:38
How to deal with JWT expiration?

First of all, please note that token expiration and revoking are two different things.

  1. Expiration only happens for web apps, not for native mobile apps, because native apps never expire.
  2. Revoking only happens when (1) uses click the logout button on the website or native Apps;(2) users reset their passwords; (3) users revoke their tokens explicitly in the administration panel.

1. How to hadle JWT expiration

A JWT token that never expires is dangerous if the token is stolen then someone can always access the user's data.

Quoted from JWT RFC: