Skip to content

Instantly share code, notes, and snippets.

@hzchirs
hzchirs / fee_calculator.html
Last active August 2, 2020 08:56
簡易型租屋費用分攤計算器
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<title>費用計算機</title>
</head>
<body>
<div id="app">
@hzchirs
hzchirs / ruby.vim
Last active August 27, 2018 06:10
Ruby class name and method name text object for vim
" method name object, e.g. cmn (change method name), dmn (delete method name), vmn (visual select method name)
" m -> vim-ruby method text-obj n -> name
onoremap mn :<c-u>execute "normal! ?\def\\s\\l\\+\r:nohlsearch\rwviW"<CR>
vnoremap mn :<c-u>execute "normal! ?\def\\s\\l\\+\r:nohlsearch\rwviW"<CR>
" class name object, e.g. cMn, dMn, vMn
" M -> vim-ruby class text-obj n -> name
onoremap Mn :<c-u>execute "normal! ?\\(class\\\|module\\\|describe\\)\\s\\u\\l\\+\r:nohlsearch\rwviW"<CR>
vnoremap Mn :<c-u>execute "normal! ?\\(class\\\|module\\\|describe\\)\\s\\u\\l\\+\r:nohlsearch\rwviW"<CR>
@hzchirs
hzchirs / circleci2.0-workflow.yml
Last active June 25, 2018 05:49
A CircleCI2.0 workflow config
version: 2.0
references:
container_config: &container_config
docker:
- image: circleci/ruby:2.3.7-node-browsers
environment:
BUNDLE_JOBS: 3
BUNDLE_RETRY: 3
BUNDLE_PATH: vendor/bundle