formrun (フォームラン)という「急なフォームの設置を依頼されたときに短時間で導入できるお問い合わせフォーム」を作ったので,具体的な利用例のコードを紹介したいと思います。
- フォーム設置にストレスを感じたことのあるエンジニア・デザイナー
| autoload -Uz vcs_info | |
| setopt prompt_subst | |
| zstyle ':vcs_info:git:*' check-for-changes true | |
| zstyle ':vcs_info:git:*' stagedstr "!" | |
| zstyle ':vcs_info:git:*' unstagedstr "+" | |
| zstyle ':vcs_info:*' formats "%c%u:%b" | |
| zstyle ':vcs_info:*' actionformats '%b:%a' | |
| precmd() { vcs_info } | |
| PROMPT_SEPARATOR=$'\u2b80' |
| ... | |
| gem 'faraday_middleware' | |
| ... | |
| FROM rust:1.19.0 | |
| RUN apt-get update && apt-get install -y pkg-config libssl-dev | |
| RUN mkdir -p /opt/rust | |
| WORKDIR /opt/rust | |
| CMD ["sh", "-c", "tail -f /dev/null"] |
| var a = {} | |
| var b = Object.create(Object.prototype) |
| <keymap version="1" name="Mac OS X 10.5+ copy" parent="Mac OS X 10.5+"> | |
| <action id="Back"> | |
| <keyboard-shortcut first-keystroke="meta open_bracket" /> | |
| <mouse-shortcut keystroke="button4" /> | |
| </action> | |
| <action id="Console.TableResult.NavigateAction"> | |
| <keyboard-shortcut first-keystroke="f4" /> | |
| </action> | |
| <action id="DomCollectionControl.Edit"> | |
| <keyboard-shortcut first-keystroke="f4" /> |
formrun (フォームラン)という「急なフォームの設置を依頼されたときに短時間で導入できるお問い合わせフォーム」を作ったので,具体的な利用例のコードを紹介したいと思います。
| git rev-list --right-only origin/develop...origin/master | xargs git show -q | grep -A 2 'Merge pull request' | perl -pe 's/^\-+//; s/\s+Merge pull request/\- [ ]/;' |
| namespace :unicorn do | |
| desc 'Force restart Unicorn (sequential)' | |
| task :force_restart do | |
| on roles(fetch(:unicorn_roles)), in: :sequence, wait: 10 do | |
| within current_path do | |
| if test("[ -e #{fetch(:unicorn_pid)} ]") | |
| if test("kill -0 #{pid}") | |
| info 'stopping unicorn...' | |
| execute :kill, '-s QUIT', pid | |
| else |
| https://www.google.com/search?tbs=qdr:y&q=%s |
| SELECT a.table_name, pg_relation_size(a.table_name) AS size, b.count FROM information_schema.tables AS a | |
| INNER JOIN ( | |
| SELECT relname, n_tup_ins - n_tup_del as count FROM pg_stat_all_tables | |
| ) AS b | |
| ON b.relname = a.table_name | |
| WHERE a.table_schema = 'public' | |
| ORDER BY size DESC; |