joyjoy
@joyjoy@lemmy.world
- Comment on lemm.ee Is Down 10 months ago:
No worries. They’re updating to 0.19
- Comment on python < shell (for scripts) 1 year ago:
Shellcheck really helps
- Comment on Some people just can't place themselves 1 year ago:
I actually made this before chatgpt became so popular. At the time, the people I made this about wanted to use things like pytorch, tensorflow, and scikit.
- Comment on Some people just can't place themselves 1 year ago:
The ${} syntax manipulates a variable. In this instance, I believe % removes a suffix. # is for a prefix. I can never remember which is which.
Semicolons just separate statements. You can replace them with a new line to get the same effect.
- Comment on Some people just can't place themselves 1 year ago:
Is your issue about just syntax?
for part in $text; do echo "xX$partXx" done
In bash, this loops over each word in a variable. If you want each line, you’ll need to use a while read loop instead.
while read -r line; do echo "xX$lineXx" done <<< "$text"
- Submitted 1 year ago to programmer_humor@programming.dev | 29 comments
- Comment on Why do developers keep adding virtual cursors to console games? 1 year ago:
The only game I can think of is Minecraft.
- Comment on Netflix says people just kind of rolled over and accepted the password sharing crackdown 1 year ago:
Don’t tell them, but I still use my parents’ Netflix account. I live on the other side of the county.
- Comment on Yes I have double standards, sue me 1 year ago:
It sounds like the plot of an action movie.
- Comment on Yes I have double standards, sue me 1 year ago:
It’s a good thing it’s a virtual server. I can’t imagine the issues you would have if you hosted it from the back of your truck.