Skip to content

Instantly share code, notes, and snippets.

@manhhope
manhhope / git-tutorial.md
Created October 18, 2025 09:22 — forked from phamducminh/git-tutorial.md
Git Tutorial

Git Tutorial

The purpose of this document is to guide the user on how to work with the Android git repository and git commands in general. This document is not meant to be a full git teaching tool, but more of a getting started guide.

By Minh Pham, 2020

Content

@manhhope
manhhope / git-best-practices.md
Created October 18, 2025 09:20 — forked from phamducminh/git-best-practices.md
Git Best Practices
@manhhope
manhhope / merge-request-guide.md
Created October 18, 2025 09:20 — forked from phamducminh/merge-request-guide.md
Merge Request Guide

Merge Request Guideline

In order to improve code quality we have to follow merge request rule.

By Minh Pham, 2020

Dùng merge request cho các branch: develop, release_*

Để tăng chất lượng code sau khi tách business team thì codebase của android sẽ app dụng rule là phải tạo request merge và được accept bởi reviewer với yêu cầu theo bên dưới:

@manhhope
manhhope / remove_accents.py
Created October 18, 2025 09:15 — forked from phamducminh/remove_accents.py
Remove Vietnamese Accents - Xoá dấu tiếng việt in Python
s1 = u'ÀÁÂÃÈÉÊÌÍÒÓÔÕÙÚÝàáâãèéêìíòóôõùúýĂăĐđĨĩŨũƠơƯưẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặẸẹẺẻẼẽẾếỀềỂểỄễỆệỈỉỊịỌọỎỏỐốỒồỔổỖỗỘộỚớỜờỞởỠỡỢợỤụỦủỨứỪừỬửỮữỰựỲỳỴỵỶỷỸỹ'
s0 = u'AAAAEEEIIOOOOUUYaaaaeeeiioooouuyAaDdIiUuOoUuAaAaAaAaAaAaAaAaAaAaAaAaEeEeEeEeEeEeEeEeIiIiOoOoOoOoOoOoOoOoOoOoOoOoUuUuUuUuUuUuUuYyYyYyYy'
def remove_accents(input_str):
s = ''
print input_str.encode('utf-8')
for c in input_str:
if c in s1:
s += s0[s1.index(c)]
else:
s += c
@manhhope
manhhope / git-workflow.md
Created October 18, 2025 09:13 — forked from phamducminh/git-workflow.md
Git Workflow