Skip to content

Instantly share code, notes, and snippets.

View ansidev's full-sized avatar
🎯
Focusing

Le Minh Tri ansidev

🎯
Focusing
View GitHub Profile
@ansidev
ansidev / key_binding.5s.py
Last active November 11, 2023 05:58
xbar key binding plugin
#!/usr/bin/env -S PATH="${PATH}:/opt/homebrew/bin:/usr/local/bin" python3
# Key Binding plugin
#
# by ansidev (ansidev@gmail.com)
#
# metadata
# <xbar.title>Key binding plugin</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Le Minh Tri</xbar.author>
@ansidev
ansidev / automator_application.png
Last active June 12, 2023 08:03
Open with WezTerm
automator_application.png

WORLD MISSION SOCIETY CHURCH OF GOD'S DOMAIN

  • Đây là tà giáo.

Tên gọi

  • Tên tiếng Anh: WORLD MISSION SOCIETY CHURCH OF GOD
  • Tên tiếng Việt:
    • Hội Thánh Đức Chúa Trời
    • Hội Thánh Đức Chúa Trời Mẹ
@ansidev
ansidev / ThemeSwitcher.astro
Created November 20, 2022 23:08
Astro ThemeSwitcher Component
---
import bi from "@iconify-json/bi/icons.json"
import Icon from "@/components/Icon.astro"
type ThemeType = "dark" | "light"
const THEME_DARK: ThemeType = "dark"
const THEME_LIGHT: ThemeType = "light"
const STORAGE_KEY_THEME: string = "theme"
let defaultTheme: ThemeType = THEME_DARK
@ansidev
ansidev / sample_resume_config.yaml
Created October 18, 2022 10:36
Sample Resume Config
generate:
delay: 5
landscape: false
displayHeaderFooter: false
printBackground: false
scale: 1
paperWidth: 8.3
paperHeight: 11.7
marginTop: 0
marginBottom: 0
@ansidev
ansidev / toc-builder.ts
Created August 17, 2022 15:58
Table of Content Builder for Markdown (use with vite-plugin-md)
// src/builders/toc-builder.ts
import { createBuilder, PipelineStage } from "@yankeeinlondon/builder-api"
import Toc from 'markdown-it-toc-done-right'
const tocBuilder = createBuilder('toc', PipelineStage.parser)
.options()
.initializer()
.handler(
async (payload, _) => {
<template>
<component-001
v-slot="{ prop1, prop2 }"
>
<slot name="slot1" :slot-prop-1="prop1" />
<slot name="slot2" :slot-prop-2="prop2" />
</component-001>
</template>
<script>
@ansidev
ansidev / .env.example
Last active August 13, 2020 05:42
Simple Database backup and restore command for database which is running in Docker
DB_HOST=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
@ansidev
ansidev / README.md
Last active July 28, 2020 18:07
NGINX Configuration for Laravel + NuxtJS
@ansidev
ansidev / vietnamese_accent_regex.regex
Created June 9, 2020 22:10
Regex to check if the paragraph contains Vietnamese accent
var regex= /[À|Á|Â|Ã|È|Ê|Ì|Í|Ò|Ó|Ô|Õ|Ù|Ú|Ý|à|á|â|ã|è|é|ê|ì|í|ò|ó|ô|õ|ù|ú|ý|Ă|ă|Đ|đ|Ĩ|ĩ|Ũ|ũ|Ơ|ơ|Ư|ư|Ạ|ạ|Ả|ả|Ấ|ấ|Ầ|ầ|Ẩ|ẩ|Ẫ|ẫ|Ậ|ậ|Ắ|ắ|Ằ|ằ|Ẳ|ẳ|Ẵ|ẵ|Ặ|ặ|Ẹ|ẹ|Ẻ|ẻ|Ẽ|ẽ|Ế|ế|Ề|ề|Ể|ể|Ễ|ễ|Ệ|ệ|Ỉ|ỉ|Ị|ị|Ọ|ọ|Ỏ|ỏ|Ố|ố|Ồ|ồ|Ổ|ổ|Ỗ|ỗ|Ộ|ộ|Ớ|ớ|Ờ|ờ|Ở|ở|Ỡ|ỡ|Ợ|ợ|Ụ|ụ|Ủ|ủ|Ứ|ứ|Ừ|ừ|Ử|ử|Ữ|ữ|Ự|ự|Ỳ|ỳ|Ỵ|ỵ|Ỷ|ỷ|Ỹ|ỹ]/