Skip to content

Instantly share code, notes, and snippets.

View plskz's full-sized avatar
🦝
Learning

Zai Santillan plskz

🦝
Learning
View GitHub Profile
@plskz
plskz / 0-vim.md
Last active September 19, 2023 02:02
Vim

Vim dump

  • see .vimrc for vim config
  • see init.vim for nvim config
@plskz
plskz / fem-get-contents.ts
Last active September 19, 2023 02:06
FrontendMasters - get course contents then paste it to logseq
import jsonData from './developer-productivity.json'
const data = jsonData as Welcome;
export interface Welcome {
course: string;
url: string;
chapters: Chapter[];
}
#!/usr/bin/env PATH=$PATH:/opt/homebrew/opt/node@18/bin node
// Required parameters:
// @raycast.schemaVersion 1
// @raycast.title Open Logseq Today's JW
// @raycast.mode fullOutput
// Optional parameters:
// @raycast.icon 📆
⢀⡀⠀⠀⠀⠀⠀⡄⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣏⠓⠒⠤⣰⠋⠹⡄⠀⣠⠞⣿⠀⠀
⠀⠀⠀⢀⠄⠂⠙⢦⡀⠐⠨⣆⠁⣷⣮⠖⠋⠉⠁⠀
⠀⠀⡰⠁⠀⠮⠇⠀⣩⠶⠒⠾⣿⡯⡋⠩⡓⢦⣀⡀
⠀⡰⢰⡹⠀⠀⠲⣾⣁⣀⣤⠞⢧⡈⢊⢲⠶⠶⠛⠁
⢀⠃⠀⠀⠀⣌⡅⠀⢀⡀⠀⠀⣈⠻⠦⣤⣿⡀⠀⠀
⠸⣎⠇⠀⠀⡠⡄⠀⠷⠎⠀⠐⡶⠁⠀⠀⣟⡇⠀⠀
⡇⠀⡠⣄⠀⠷⠃⠀⠀⡤⠄⠀⠀⣔⡰⠀⢩⠇⠀⠀
⡇⠀⠻⠋⠀⢀⠤⠀⠈⠛⠁⠀⢀⠉⠁⣠⠏⠀⠀⠀
⣷⢰⢢⠀⠀⠘⠚⠀⢰⣂⠆⠰⢥⡡⠞⠁⠀⠀⠀⠀

--- dump ---

  • Activities
    • Reading
    • Watching
    • Completed
    • Paused
    • Dropped
    • Planning
@plskz
plskz / oreo.txt
Last active February 17, 2025 03:30
5oqq2216
Ah-GMMJiP-MDEHWD-VXGQG-VJDRM-FFjJk-jlAXF
A ≠ a
@plskz
plskz / utils.ts
Last active June 16, 2024 13:46
Use cn() util
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
@plskz
plskz / update-deps.sh
Last active March 13, 2024 07:11
update all deps for my-threejs-journey repo
#!/bin/bash
# Loop through folders from 01 to 33
for folder_number in {1..33}; do
folder=$(printf "%02d-" "$folder_number") # Format folder number with leading zero
# Find folders with the given prefix
folders_with_prefix=$(find . -maxdepth 1 -type d -name "$folder*")
# Loop through folders with the given prefix
@plskz
plskz / different-favicons-in-development-and-production.md
Last active February 24, 2024 12:50
different favicons in development and production (next.js app router)

root layout.tsx

export const metadata: Metadata = {
  // ...
  icons: [{
    rel: 'icon',
    url: process.env.NODE_ENV === 'production' ? '/favicon.ico' : '/favicon-dev.ico',
  }]
}
@plskz
plskz / rename.sh
Created March 13, 2024 07:13
update folder name for my-threejs-journey repo
#!/bin/bash
# Target starting number for renaming (start at 64)
start_number=64
# Iterate through folders in reverse, starting with folder number 51
for i in {51..32}; do
old_name="${i}-" # Build the old folder name pattern
# Check if the folder exists