Skip to content

Instantly share code, notes, and snippets.

@decaylala
decaylala / machine.js
Created December 15, 2020 15:15
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@decaylala
decaylala / machine.js
Last active September 22, 2020 03:56
Generated by XState Viz: https://xstate.js.org/viz
const machine = Machine({
id: 'companyOperatingStatus',
initial: 'establishing',
states: {
establishing: {
on: {
CANCEL: 'not_simpany_customer',
ESTABLISHED: 'operating',
},
},
@decaylala
decaylala / luna_pinyin.custom.yaml
Last active October 13, 2015 09:38 — forked from lotem/squirrel.custom.yaml
【鼠鬚管】定製檔
# 設定全形模式下的空白爲半型空白
# 位置:~/Library/Rime/luna_pinyin.custom.yaml
patch:
punctuator/full_shape:
" " : " "
@decaylala
decaylala / gist:3385691
Created August 18, 2012 09:44
oh-my-zsh theme
function prompt_char {
git branch >/dev/null 2>/dev/null && echo '±' && return
echo '$'
}
function virtualenv_info {
[ $VIRTUAL_ENV ] && echo `basename $VIRTUAL_ENV`
}
if which rvm-prompt &> /dev/null; then
@decaylala
decaylala / gemrc
Last active October 7, 2015 17:07
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri