Skip to content

Instantly share code, notes, and snippets.

View MulanPSL v2.0
木兰宽松许可证, 第2版
木兰宽松许可证, 第2版
0. 定义
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:


start new with session name:

blackcater / 📊 Weekly development breakdown
Last active Oct 29, 2020
Weekly development breakdown
View 📊 Weekly development breakdown
Vue.js 13 hrs 44 mins ████████▏░░░░░░░░░░░░ 38.7%
JavaScript 11 hrs 53 mins ███████░░░░░░░░░░░░░░ 33.5%
JSON 3 hrs 43 mins ██▏░░░░░░░░░░░░░░░░░░ 10.5%
C++ 2 hrs 25 mins █▍░░░░░░░░░░░░░░░░░░░ 6.8%
TypeScript 50 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.4%
# Please install bass
# > omf install bass
function nvm
bass source /usr/local/opt/nvm/ --no-use ';' nvm $argv
blackcater / minikube-start.txt
Created Aug 22, 2019
minikube for chinese people.
View minikube-start.txt
minikube start --image-mirror-country="cn" --registry-mirror=""
View Mojave Theme Colors.scss
// When color definition differs for dark and light variant,
// it gets @if ed depending on $variant
// Base colors
$base_color: if($variant =='light', #ffffff, #242424);
$text_color: if($variant == 'light', #363636, #dadada);
$bg_color: if($variant =='light', #f5f5f5, #333333);
$fg_color: if($variant =='light', #242424, #dedede);
$alt_fg_color: if($variant=='light', #383838, #3d3d3d);
View main.css
// constant(safe-area-inset-top):在Viewport顶部的安全区域内设置量(CSS像素)
// constant(safe-area-inset-bottom):在Viewport底部的安全区域内设置量(CSS像素)
// constant(safe-area-inset-left):在Viewport左边的安全区域内设置量(CSS像素)
// constant(safe-area-inset-right):在Viewport右边的安全区域内设置量(CSS像素)
// constant 为 iOS 11 推荐,于 iOS 11.2 后更改为 env
// top, bottom, left, right 指你当前手机朝向的上下左右
blackcater /
Last active Sep 6, 2018
sdkman support fishshell
# sdk command
function sdk
bash -c "source $HOME/.sdkman/bin/ && sdk $argv"
# add paths
for ITEM in $HOME/.sdkman/candidates/* ;
set -gx PATH $PATH $ITEM/current/bin


Markdown Preview Enhanced supports rendering flow charts, sequence diagrams, mermaid, PlantUML, WaveDrom, GraphViz, Vega & Vega-lite, Ditaa diagrams. You can also render TikZ, Python Matplotlib, Plotly and all sorts of other graphs and diagrams by using Code Chunk.

Please note that some diagrams don't work well with file exports such as PDF, pandoc, etc.

Flow Charts

This feature is powered by flowchart.js.

blackcater /
Last active Jul 11, 2019


H5页面窗口自动调整到设备宽度,并禁止用户缩放页面 //一、HTML页面结构 // width 设置viewport宽度,为一个正整数,或字符串‘device-width’ // height 设置viewport高度,一般设置了宽度,会自动解析出高度,可以不用设置 // initial-scale 默认缩放比例,为一个数字,可以带小数 // minimum-scale 允许用户最小缩放比例,为一个数字,可以带小数 // maximum-scale 允许用户最大缩放比例,为一个数字,可以带小数

You can’t perform that action at this time.