HackerTrans
TopNewTrendsCommentsPastAskShowJobs

drw

no profile record

Submissions

Show HN: Mycli 2.0

github.com
3 points·by drw·قبل 13 يومًا·0 comments

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

github.com
1 points·by drw·قبل 3 أشهر·0 comments

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

github.com
1 points·by drw·قبل 3 أشهر·0 comments

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

github.com
1 points·by drw·قبل 4 أشهر·0 comments

Memoir of chess influencer and cult survivor Danny Rensch

newyorker.com
1 points·by drw·قبل 10 أشهر·0 comments

How Many Elite Chess Players Cheat?

wsj.com
16 points·by drw·قبل سنتين·6 comments

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

chess.com
2 points·by drw·قبل سنتين·0 comments

Chess.com Robots.txt

chess.com
2 points·by drw·قبل 4 سنوات·2 comments

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

chess.com
16 points·by drw·قبل 4 سنوات·0 comments

comments

drw
·الشهر الماضي·discuss
I'm sure they are getting training data! But it is hands-off otherwise.
drw
·الشهر الماضي·discuss
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 سنوات·discuss
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