HackerTrans
トップ新着トレンドコメント過去質問紹介求人

drw

no profile record

投稿

Show HN: Mycli 2.0

github.com
3 ポイント·投稿者 drw·13 日前·0 コメント

Spooky-connect4: a Rust/Python library with variable board sizes

github.com
1 ポイント·投稿者 drw·3 か月前·0 コメント

Spooky-chess: a Rust/Python library with variable board sizes

github.com
1 ポイント·投稿者 drw·3 か月前·0 コメント

Spooky-chess: a Rust/Python library with variable board sizes

github.com
1 ポイント·投稿者 drw·4 か月前·0 コメント

Memoir of chess influencer and cult survivor Danny Rensch

newyorker.com
1 ポイント·投稿者 drw·10 か月前·0 コメント

How Many Elite Chess Players Cheat?

wsj.com
16 ポイント·投稿者 drw·2 年前·6 コメント

Are There Too Many Upsets in Titled Tuesday on Chess.com?

chess.com
2 ポイント·投稿者 drw·2 年前·0 コメント

Chess.com Robots.txt

chess.com
2 ポイント·投稿者 drw·4 年前·2 コメント

“Stop the War.” 44 Russian Chess Players Publish Open Letter to Putin

chess.com
16 ポイント·投稿者 drw·4 年前·0 コメント

コメント

drw
·先月·議論
I'm sure they are getting training data! But it is hands-off otherwise.
drw
·先月·議論
Mycli (https://github.com/dbcli/mycli) is a happy recipient of sponsorship from this program. OpenAI asked for nothing in return; not even a link.
drw
·4 年前·議論
More flexible would be a double-quote-region widget which can be applied arbitrarily to any region of a command line:

    emulate -L zsh

    if [[ "$REGION_ACTIVE" -eq 0 ]]; then
        return
    fi

    if [[ "$MARK" -le "$CURSOR" ]]; then
        left_region_bound="$MARK"
        right_region_bound="$CURSOR"
    else
        left_region_bound="$CURSOR"
        right_region_bound="$MARK"
    fi
    length_region="$((right_region_bound - left_region_bound))"

    before_region="${BUFFER:0:$left_region_bound}"
    region="${BUFFER:$left_region_bound:$length_region}"
    after_region="${BUFFER:$right_region_bound}"

    quoted_region="${(qqq)region}"
    cursor_offset="$(($#quoted_region - $#region))"

    BUFFER="$before_region$quoted_region$after_region"
    CURSOR="$((CURSOR + cursor_offset))"
    REGION_ACTIVE=0
bind with eg

    zle -N double-quote-region
    bindkey '\e"'  double-quote-region