Skip to content

Instantly share code, notes, and snippets.

View henrynvn09's full-sized avatar

Henry Nguyen henrynvn09

  • UCLA
  • Los Angeles
  • 16:54 (UTC -08:00)
View GitHub Profile
@henrynvn09
henrynvn09 / regex.md
Last active April 25, 2024 04:25
regex convert obsidian to anki

for inline #vocab

^\t?- ?((?:[^\n])+) ?:? ?#vocab ?\n*((?:(?:.{1,3}$|.{4}(?<!<!--).*))(?:\n(?:^.{1,3}$|^.{4}(?<!<!--).*))*)

for this type of content: start with -, and #vocab separate front and back. the back extends until a empty line

- **Assumability or Due on Sale**: #vocab Most the loan; The loan balance must be pay in full at the closing the property
@henrynvn09
henrynvn09 / c_cpp_properties.json
Created October 3, 2023 23:14
C++ config for Vs Code on MacOS
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
@henrynvn09
henrynvn09 / toggle-terminal.ahk
Last active March 6, 2023 22:26 — forked from lu0/toggle-terminal.ahk
AutoHotkey script to hide/show a Windows Terminal using a keybinding
#NoTrayIcon
#SingleInstance Force
;
; This scripts toggles between states raised and hidden of a Windows Terminal,
; or opens a new one if not opened, using `Super + T` or `Super + Enter`
;
; Supports multiple workspaces or virtual desktops.
;
#Requires AutoHotkey v1.1
#+q::WinClose, A ;
#Enter::Run "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
#F::
WinGet,WinState,MinMax,A
If (WinState = 1)
WinRestore, A
#{{{-01.plugins.vim---------------------------------------------------------------------------
" auto-install vim-plug
if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall
endif
call plug#begin('~/.config/nvim/plugins')
@henrynvn09
henrynvn09 / instructions.md
Created May 1, 2020 18:11 — forked from matthewjberger/instructions.md
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache