Skip to content

Instantly share code, notes, and snippets.

View bunsyy's full-sized avatar

Bunsy Chhay bunsyy

View GitHub Profile
@bunsyy
bunsyy / basic-regex.py
Created April 7, 2025 04:07
A gentle introduction to regular expression
import re
text = "My phone number is 123-456-7890."
pattern = r"\d{3}-\d{3}-\d{4}"
match = re.search(pattern, text)
print(match.group()) # Output: 123-456-7890

Khmer Orthography

This section outlines the Khmer writing system, focusing on its series system and how phonemes correspond to graphemes. It covers consonants, clusters, and their pronunciation rules, drawing from historical and modern usage.

1. Series System

Khmer orthography uses a "series" system to determine syllable pronunciation, dividing consonants into two groups:

  • 1st Series (light voice): Higher pitch, e.g., ក (/k/).
  • 2nd Series (heavy voice): Lower pitch, e.g., គ (/k/).
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@bunsyy
bunsyy / README.md
Last active February 10, 2025 02:48
Fixing the "Cannot Connect to the Docker Daemon" Error: A Quick Guide
@bunsyy
bunsyy / README.md
Last active February 10, 2025 02:29
How I fix a node_module dependency by myself
@bunsyy
bunsyy / settings.json
Created November 20, 2024 09:35
Custom Todo Highlight and Todo Tree in VSCode
{
"todohighlight.keywords": [
{
"text": "TODO:",
"color": "#000",
"backgroundColor": "#FFBE0B",
"isWholeLine": false,
},
{
"text": "DOING:",
@bunsyy
bunsyy / README.md
Last active February 10, 2025 02:47
How to Reclaim your Storage from Docker
@bunsyy
bunsyy / gridWhereItemsHaveEqualHeight.html
Last active September 12, 2024 07:05
Grid where its elements have the same height. Tailwind playground: https://play.tailwindcss.com/8jhSp9EEzv
<div class="mx-auto grid grid-cols-2 gap-4 p-6">
<div class="col-span-1 flex flex-col border-2 bg-white p-4">
<h2 class="mb-2 text-2xl font-bold">Card Name</h2>
<div class="mb-4 flex flex-wrap">
<span class="mr-2">Link 1</span>
<span class="mr-2">Link 2</span>
</div>
<p class="text-md text-justify">Some Description</p>
<div class="mt-auto flex flex-wrap pt-3 text-xs">
<p class="mb-2 mr-2">Tag #1</p>
@bunsyy
bunsyy / four-byte-emojis.json
Created August 6, 2024 08:40 — forked from watson/four-byte-emojis.json
Emoji's sorted by byte-size
[
"😁",
"😂",
"😃",
"😄",
"😅",
"😆",
"😉",
"😊",
"😋",