Ask HN: Share your personal website 6 months ago
HN user
imakira
14 karma
Posts1
Comments6
Thanks for the great information!
Thanks! I have tried using bash substitution to solve it but failed (I just learned the difference between "#" and "##").
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
}Orb Farm 3 years ago
Yeah it's like cheating, and I cheat myself by thinking O2 can exchange through sand :D
Orb Farm 3 years ago
I figured out you can limit the living area of Daphnia using glass and sand, and then feed the fishes with only grass.