Skip to content

Instantly share code, notes, and snippets.

View doraeminemon's full-sized avatar
🎯
Focusing

Do Dinh Thy Son doraeminemon

🎯
Focusing
View GitHub Profile
@doraeminemon
doraeminemon / .zshrc
Last active December 25, 2025 08:49
My personal zshell config
### Added by Zinit's installer
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
print -P "%F{33} %F{34}Installation successful.%f%b" || \
print -P "%F{160} The clone has failed.%f%b"
fi
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
@doraeminemon
doraeminemon / Bubbles.md
Created December 9, 2025 13:11
Bubbles that I’m blowing
  • Games
  • Internet
@doraeminemon
doraeminemon / nonAccentVietnamese.js
Last active October 27, 2022 02:58 — forked from jarvisluong/nonAccentVietnamese.js
Converting standard Vietnamese Characters to non-accent ones. Example: hải -> hai
function nonAccentVietnamese(str) {
str = str.replace(/A|Á|À|Ã||Â|||||Ă||||/g, "A");
str = str.replace(/à|á|||ã|â||||||ă|||||/g, "a");
str = str.replace(/E|É|È|||Ê||||/, "E");
str = str.replace(/è|é||||ê||ế|||/g, "e");
str = str.replace(/I|Í|Ì|Ĩ|/g, "I");
str = str.replace(/ì|í|||ĩ/g, "i");
str = str.replace(/O|Ó|Ò|Õ||Ô|||||Ơ||||/g, "O");
str = str.replace(/ò|ó|||õ|ô||||||ơ|||||/g, "o");
str = str.replace(/U|Ú|Ù|Ũ||Ư||||/g, "U");
@doraeminemon
doraeminemon / GoogleDOB.swift
Created December 22, 2017 10:04
How to get user info with birthday from GoogleSignIn
// Về cơ bản, đầu tiên có được access sau khi sử dụng Gooogle SDk
// Trong Google SDK cần 1 sô thành phần để tiếp tục :
// - user.authentication.accessToken
// - user.userID
// - user.authentication.idToken
///
/// Dùng để lấy tât cả mọi trương trừ DOB
///
struct TokenInfo : TargetType {