Skip to content

Instantly share code, notes, and snippets.

View hypermkt's full-sized avatar

Makoto Chiba hypermkt

View GitHub Profile

リソースの複数削除

実装方法

パターン1: DELETEメソッドで対象IDを複数個指定

DELETE /resources?ids=recordId1,recordId2

Request

無し

Response

204 No Content

$ loan-simulator -y 35 -i 1 -a 3000
返済期間: 35 年
返済期間: 420 ヶ月
金利: 1 %
月利: 0.0008333333333333334
借入金額: 3000 万円
借入金額: 30000000 円
---
+------+---------+--------+-------+-------+----------+
@hypermkt
hypermkt / git-delete-select-branch
Created August 2, 2020 15:19
Delete selected multi branch
#/bin/bash
# from SO: https://stackoverflow.com/a/54261882/317605 (by https://stackoverflow.com/users/8207842/dols3m)
function prompt_for_multiselect {
# little helpers for terminal print control and key input
ESC=$( printf "\033")
cursor_blink_on() { printf "$ESC[?25h"; }
cursor_blink_off() { printf "$ESC[?25l"; }
cursor_to() { printf "$ESC[$1;${2:-1}H"; }
print_inactive() { printf "$2 $1 "; }