diff --git a/misc/alpha/alpha.md b/misc/alpha/alpha.md deleted file mode 100644 index 36e3cd28..00000000 --- a/misc/alpha/alpha.md +++ /dev/null @@ -1 +0,0 @@ -# {{title "alpha"}} diff --git a/misc/pi/pi.md b/misc/pi/pi.md deleted file mode 100644 index fd07b13b..00000000 --- a/misc/pi/pi.md +++ /dev/null @@ -1 +0,0 @@ -# {{title "pi"}} diff --git a/misc/vim/vim.js b/misc/vim/vim.js deleted file mode 100644 index 957bfb22..00000000 --- a/misc/vim/vim.js +++ /dev/null @@ -1,9 +0,0 @@ -Volcanos("onimport", {help: "导入数据", list: [], - "init": function(can, msg, cb, output, action, option) {}, -}) -Volcanos("onaction", {help: "控件菜单", list: []}) -Volcanos("onchoice", {help: "控件交互", list: ["刷新"] - "刷新": function(event, can, value, cmd, target) {}, -}) -Volcanos("ondetail", {help: "控件详情", list: []}) -Volcanos("onexport", {help: "导出数据", list: []}) diff --git a/misc/zsh/ctx_err b/misc/zsh/ctx_err deleted file mode 100644 index df550372..00000000 --- a/misc/zsh/ctx_err +++ /dev/null @@ -1,34 +0,0 @@ -TERM_PROGRAM=Apple_Terminal -TERM=screen -SHELL=/bin/zsh -TMPDIR=/var/folders/4s/qvyll7yd0096xwz685cyg3780000gn/T/ -GOBIN=/Users/shaoying/go/bin -Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.Zo9k6rnWr0/Render -TERM_PROGRAM_VERSION=404 -TERM_SESSION_ID=255A0489-6A45-4FE0-BA47-3C669134541D -ZSH=/Users/shaoying/.oh-my-zsh -ZSH_TMUX_TERM=screen -USER=shaoying -_ZSH_TMUX_FIXED_CONFIG=/Users/shaoying/.oh-my-zsh/plugins/tmux/tmux.extra.conf -SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.zmZQbFPABY/Listeners -PAGER=less -TMUX=/private/tmp/tmux-501/default,7032,0 -LSCOLORS=Gxfxcxdxbxegedabagacad -PATH=/Users/shaoying/go/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/shaoying/go/bin:/Users/shaoying/.fzf/bin -GOPROXY=https://goproxy.cn -PWD=/Users/shaoying/miss/contexts/usr/icebergs/misc/zsh -EDITOR=vim -XPC_FLAGS=0x0 -TMUX_PANE=%64 -XPC_SERVICE_NAME=0 -SHLVL=3 -HOME=/Users/shaoying -GOROOT=/usr/local/go -ctx_dev=http://mac.local:9020 -ctx_self=http://:9020 -PROMPT=%![%*]%c$ -LOGNAME=shaoying -LESS=-R -LC_CTYPE=UTF-8 -GOPATH=/Users/shaoying/go:/Users/shaoying/context -_=/usr/bin/env diff --git a/misc/zsh/log b/misc/zsh/log deleted file mode 100644 index df550372..00000000 --- a/misc/zsh/log +++ /dev/null @@ -1,34 +0,0 @@ -TERM_PROGRAM=Apple_Terminal -TERM=screen -SHELL=/bin/zsh -TMPDIR=/var/folders/4s/qvyll7yd0096xwz685cyg3780000gn/T/ -GOBIN=/Users/shaoying/go/bin -Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.Zo9k6rnWr0/Render -TERM_PROGRAM_VERSION=404 -TERM_SESSION_ID=255A0489-6A45-4FE0-BA47-3C669134541D -ZSH=/Users/shaoying/.oh-my-zsh -ZSH_TMUX_TERM=screen -USER=shaoying -_ZSH_TMUX_FIXED_CONFIG=/Users/shaoying/.oh-my-zsh/plugins/tmux/tmux.extra.conf -SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.zmZQbFPABY/Listeners -PAGER=less -TMUX=/private/tmp/tmux-501/default,7032,0 -LSCOLORS=Gxfxcxdxbxegedabagacad -PATH=/Users/shaoying/go/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/shaoying/go/bin:/Users/shaoying/.fzf/bin -GOPROXY=https://goproxy.cn -PWD=/Users/shaoying/miss/contexts/usr/icebergs/misc/zsh -EDITOR=vim -XPC_FLAGS=0x0 -TMUX_PANE=%64 -XPC_SERVICE_NAME=0 -SHLVL=3 -HOME=/Users/shaoying -GOROOT=/usr/local/go -ctx_dev=http://mac.local:9020 -ctx_self=http://:9020 -PROMPT=%![%*]%c$ -LOGNAME=shaoying -LESS=-R -LC_CTYPE=UTF-8 -GOPATH=/Users/shaoying/go:/Users/shaoying/context -_=/usr/bin/env diff --git a/misc/zsh/zsh.js b/misc/zsh/zsh.js deleted file mode 100644 index 957bfb22..00000000 --- a/misc/zsh/zsh.js +++ /dev/null @@ -1,9 +0,0 @@ -Volcanos("onimport", {help: "导入数据", list: [], - "init": function(can, msg, cb, output, action, option) {}, -}) -Volcanos("onaction", {help: "控件菜单", list: []}) -Volcanos("onchoice", {help: "控件交互", list: ["刷新"] - "刷新": function(event, can, value, cmd, target) {}, -}) -Volcanos("ondetail", {help: "控件详情", list: []}) -Volcanos("onexport", {help: "导出数据", list: []}) diff --git a/misc/zsh/zsh.shy b/misc/zsh/zsh.shy deleted file mode 100644 index f048dc4d..00000000 --- a/misc/zsh/zsh.shy +++ /dev/null @@ -1 +0,0 @@ -title "zsh" diff --git a/template.sh b/template.sh deleted file mode 100755 index be2557e7..00000000 --- a/template.sh +++ /dev/null @@ -1,189 +0,0 @@ -#! /bin/sh - -ice_sh="bin/ice.sh" -ice_bin="bin/ice.bin" -ice_mod="${PWD##**/}" -init_shy="etc/init.shy" -local_shy="etc/local.shy" -exit_shy="etc/exit.shy" -main_go="src/main.go" -main_js="src/main.js" -readme="README.md" -shy="src/main.shy" - -prepare() { - [ -d src ] || mkdir src - - [ -f ${main_go} ] || cat >> ${main_go} <> ${shy} <> ${main_js} <> Makefile <> ${init_shy} <> ${local_shy} <> "${exit_shy}" <> ${ice_sh} <\$ctx_log && echo -e "\n\nrestarting..." || break - done -} -restart() { - [ -e \$ctx_pid ] && kill -2 \`cat \$ctx_pid\` || echo -} -shutdown() { - [ -e \$ctx_pid ] && kill -3 \`cat \$ctx_pid\` || echo -} -serve() { - prepare && shutdown && start \$@ -} - -cmd=\$1 && [ -n "\$cmd" ] && shift || cmd=serve -\$cmd \$* -END - chmod u+x ${ice_sh} -} - -build() { - export CGO_ENABLED=0 - export GOPRIVATE=github.com - export GOPROXY=https://goproxy.cn - miss=./ && [ "$1" != "" ] && miss=$1 && shift && mkdir $miss - cd $miss && prepare && go build -o ${ice_bin} ${main_go} && chmod u+x ${ice_bin} && ./${ice_sh} start serve -} - -tutor() { - [ -d $1 ] || mkdir $1 - - [ -f "$1/$1.js" ] || cat >> "$1/$1.js" <> "$1/$1.shy" <> "$1/$1.go" <