Command Palette
Search for a command to run...
Comments
Join the discussionNo comments yet. Be the first to comment.
Go Cheatsheet
Go Cheatsheet - Date & Time
Date & Time Get current date & time now := time.Now() // get current timestamp ts := now.Unix() // get current timestamp nano ts := now.UnixNano() Format now.Format("Monday January 2, 2006") now.Format("01/02/2006 15:04:05") now.Format("01/02/2006 3...
More from this blog
Enable cursor smooth animation in VS Code
Go to settings, search "cursor smooth", enable the smooth settings:
Vue3 use v-bind in style tag
Style <script setup lang="ts"> const color = ref("red) </script> <style scoped> .text { color: v-bind('color') } </style>
Pinia listen state change example
Pinia export const initData = function () { const instance = useCounterStore() // listen on change, then save to localStorage instance.$subscribe((mutation, state) => { localStorage.setItem(instance.$id, JSON.stringify(state)) ...
Config Dank Mono Font in VS Code
Steps 1, Buy & install Dank Mono font (https://dank.sh) 2, In settings.json, add: "editor.fontFamily": "Dank Mono, Menlo, Monaco", "editor.fontLigatures": true, "editor.tokenColorCustomizations": { "textMateRules": [ {...
Tailwind CSS UI Free library
General components Meraki UI ( https://merakiui.com/ ) Tailwind Components ( https://tailwindcomponents.com/ ) Tailblocks ( https://tailblocks.cc/ ) DaisyUI ( https://daisyui.com/ ) LofiUI ( https://lofiui.co/ ) MambaUI ( https://mambaui.com/ ) Flow...