HNHacker News
TopNewBestAskShowJobs

imakira

14 karma · joined August 8, 2022

submissionscomments
imakira··on Ask HN: Share your personal website
https://coruscation.net/
imakira··on Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
Thanks for the great information!
imakira··on Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
Thanks! I have tried using bash substitution to solve it but failed (I just learned the difference between "#" and "##").
imakira··on Ripgrep is faster than grep, ag, Git grep, ucg, pt, sift (2016)
I wrote a bash version of this:

  function frg {
    result=`rg --ignore-case --color=always --line-number --no-heading "$@" |
      fzf --ansi \
          --color 'hl:-1:underline,hl+:-1:underline:reverse' \
          --delimiter ':' \
          --preview "bat --color=always {1} --theme='Solarized (light)' --highlight-line {2}" \
          --preview-window 'up,60%,border-bottom,+{2}+3/3,~3'`
    file="${result%%:*}"
    linenumber=`echo "${result}" | cut -d: -f2`
    if [ ! -z "$file" ]; then
            $EDITOR +"${linenumber}" "$file"
    fi
  }
imakira··on Orb Farm
Yeah it's like cheating, and I cheat myself by thinking O2 can exchange through sand :D
imakira··on Orb Farm
I figured out you can limit the living area of Daphnia using glass and sand, and then feed the fishes with only grass.