Skip to content

Instantly share code, notes, and snippets.

@tenthree
tenthree / recipe123.md
Last active September 1, 2020 11:17
recipe123

煮給1號2號吃的3號筆記

螞蟻上樹

準備

  • 溫水 泡開冬粉 20 分鐘 (防止結塊)

製作

  • 熱鍋加油 中火 蒜末 + 薑末 爆香
  • 下豬絞肉 小火 翻炒逼油
@tenthree
tenthree / _vue.config.js
Last active January 15, 2021 12:52
@vue/cli project configure example (with default scss settings)
// --------------------------------------------------
// require modules
// --------------------------------------------------
const pkg = require('./package.json')
const path = require('path').posix
const exec = require('child_process').execSync
const BannerPlugin = require('webpack/lib/BannerPlugin.js')
// --------------------------------------------------
// Prerender routes
@tenthree
tenthree / save_my_ass.md
Last active November 22, 2024 06:39
Find dropped stash after closing the terminal
# find dangling commit hash in the git history
git fsck --no-reflog | awk '/dangling commit/ {print $3}'

# view in git log
glog $(git fsck --no-reflog | awk '/dangling commit/ {print $3}')

# then apply it back
git stash apply {dropped_stash_hash}