Skip to content

Instantly share code, notes, and snippets.

View pangpond's full-sized avatar
🎯
Focusing

pangpond pangpond

🎯
Focusing
View GitHub Profile
@pangpond
pangpond / gh.sh
Created October 15, 2025 14:30
ghq to get the repository and cd to that path
# Remove any existing gq alias/function to avoid conflicts
unalias gq 2>/dev/null
unfunction gq 2>/dev/null
gq() {
local url="$1"
if [ -z "$url" ]; then
echo "Usage: gq <github-url>"
return 1
@pangpond
pangpond / fish.html
Created October 10, 2025 07:16
fish
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>SVG Fish Graph (4–5 Colors)</title>
<style>
:root {
/* ปรับสีของแต่ละส่วนได้ที่นี่ */
@pangpond
pangpond / dioxus_tutorial.md
Last active September 19, 2025 05:15
Dioxus Tutorial

Install Rust

rustup toolchain install stable
rustup target add wasm32-unknown-unknown

Install the Dioxus CLI

@pangpond
pangpond / all.css
Last active October 15, 2020 07:38
.ut-tab-bar-item.icon-bot {
order: 3;
}
.ut-tab-bar-item.icon-bot:before {
content: "\E00C";
}
@pangpond
pangpond / date.ts
Last active September 21, 2020 04:08
import {default as momentNG} from 'moment';
import 'moment-timezone';
import 'moment/locale/th';
import i18n from '@src/services/i18n.service';
export const momentLocale = momentNG.locale('th');
if (momentLocale !== 'th') {
throw new Error(`Moment fell back to locale ${momentLocale}`);
}
export const toBuddhistYear = (moment, format) => {
#!/usr/bin/env bash
# inspired by
# https://gist.github.com/JannikArndt/feb720c1f5d210b4820b880af23f2a07
# which was inspired by
# https://github.com/fwartner/mac-cleanup/blob/master/cleanup.sh
# https://gist.github.com/jamesrampton/4503412
# https://github.com/mengfeng/clean-my-mac/blob/master/clean_my_mac.sh
# https://github.com/szymonkaliski/Dotfiles/blob/master/Scripts/clean-my-mac
# http://brettterpstra.com/2015/10/27/vacuuming-mail-dot-app-on-el-capitan/ / https://github.com/pbihq/tools/blob/master/MailDBOptimiser.sh
@pangpond
pangpond / 1-macOS-10.14-mojave-setup.md
Created September 4, 2019 08:12 — forked from kevinelliott/1-macOS-10.14-mojave-setup.md
macOS 10.14 Mojave Mostly-Automated Setup

To support my open-source work, consider adding me on Patreon.

macOS 10.14 Mojave Mostly-Automated Setup

An easy to refer to document for regularly setting up macOS 10.14 Mojave.

Controversy

The topic of recipe-based frequent fresh reinstalls of macOS is a controversial issue. Some people are against reinstalling macOS, citing that they have never had an issue with Apple provided upgrade installs.

[{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Ancient%20Origins.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Aquapolis.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Arceus.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/BREAKpoint.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/BREAKthrough.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/BW%20Black%20Star%20Promos.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Base%20Set%202.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Base.json"},
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Black%20&%20White.json"},
{"url": "https://raw.githu
## When you no idea about build error
watchman watch-del-all && rm -rf node_modules && rm -rf ~/.rncache && yarn && rm -rf /ios/build && react-native run-ios
#!/bin/bash
# Copyright 2017 Théo Chamley
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or