Skip to content

Instantly share code, notes, and snippets.

@ryo-n
ryo-n / b.rb
Last active December 12, 2019 12:25 — forked from junegunn/b.rb
b - browse Chrome bookmarks with fzf
#!/usr/bin/env bash
# vim: set filetype=ruby:
# b - browse Chrome bookmarks with fzf
[ $(uname) = Darwin ] || exit 1
which fzf > /dev/null 2>&1 || brew reinstall --HEAD fzf || exit 1
/usr/bin/ruby -x "$0" |
fzf --ansi --multi --no-hscroll --tiebreak=begin |
awk 'BEGIN { FS = "\t" } { print $2 }' |
@ryo-n
ryo-n / ContestScheduleWidget.js
Last active July 19, 2021 09:22 — forked from morioprog/ContestScheduleWidget.js
競技プログラミングのコンテスト予定を表示するiOSウィジェット(導入方法:https://blog.morio.dev/2021/01/contest_schedule_widget/
// 初期設定
// 1. CLIST(`https://clist.by/`)にログイン
// 2. `https://clist.by/api/v1/doc/`の上部の「show my api-key」を選択
// 3. 出てきたモーダル下部の「Param query」を下のCLIST_APIに貼り付け
const CLIST_API = "/?username=*****&api_key=****************************************";
// contestIds : 表示するコンテストサイトのリスト (CLISTにおけるコンテストサイトのID)
// > `https://clist.by/api/v1/doc/#!/resource/resource_list/`から検索できる
// * codeforces.com : 1
// * atcoder.jp : 93