cm0002@lemmy.world to Programmer Humor@programming.dev · 16 days agoDOGE employeelemmy.worldimagemessage-square95fedilinkarrow-up10arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up10arrow-down1imageDOGE employeelemmy.worldcm0002@lemmy.world to Programmer Humor@programming.dev · 16 days agomessage-square95fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareJaddedFauceet@lemmy.worldlinkfedilinkarrow-up0·15 days agoI used LLM to format my markdown table (ಥ ͜ʖಥ)
minus-squarelocuester@lemmy.ziplinkfedilinkEnglisharrow-up0·15 days agoThis is a primary use for me. A couple times per day. That’s part of what makes LLMs so popular with software engineers, they solve lots of trivial daily computer tasks.
minus-squaremeliaesc@lemmy.worldlinkfedilinkarrow-up0·15 days agoAt the cost of only one (1) inhabitable planet!
minus-squarejdeath@lemm.eelinkfedilinkarrow-up0·14 days agooh nice! i use Prettier for that and it has worked fine for a decade or so, but it is really lacking any AI so i have been having to search for alternatives. maybe PrettierAI, it can use LLMs to format all your code!
minus-squareJaddedFauceet@lemmy.worldlinkfedilinkarrow-up0·edit-214 days agoPrettier doesn’t make my markdown table prettier tho. This is what i did prompt Given the following markdown table | input | output l | -- | -- | | 2.6 | 3 | | 2.5 | 2 | | 2.4 | 2 | | 1.6 | 2 | | 1.5 | 2 | | 1.4 | 1 | Align the vertical bar. Align number to the left output Here’s the table with the vertical bars aligned and numbers left-aligned: | input | output l | |-------|----------| | 2.6 | 3 | | 2.5 | 2 | | 2.4 | 2 | | 1.6 | 2 | | 1.5 | 2 | | 1.4 | 1 | Each column has been padded so that the vertical bars line up consistently, and the numbers are aligned to the left as requested.
I used LLM to format my markdown table (ಥ ͜ʖಥ)
This is a primary use for me. A couple times per day.
That’s part of what makes LLMs so popular with software engineers, they solve lots of trivial daily computer tasks.
At the cost of only one (1) inhabitable planet!
ah no there’s actually a free plan! /j
oh nice! i use Prettier for that and it has worked fine for a decade or so, but it is really lacking any AI so i have been having to search for alternatives.
maybe PrettierAI, it can use LLMs to format all your code!
Prettier doesn’t make my markdown table prettier tho. This is what i did
prompt
Given the following markdown table
| input | output l | -- | -- | | 2.6 | 3 | | 2.5 | 2 | | 2.4 | 2 | | 1.6 | 2 | | 1.5 | 2 | | 1.4 | 1 |
Align the vertical bar. Align number to the left
output
Here’s the table with the vertical bars aligned and numbers left-aligned:
| input | output l | |-------|----------| | 2.6 | 3 | | 2.5 | 2 | | 2.4 | 2 | | 1.6 | 2 | | 1.5 | 2 | | 1.4 | 1 |
Each column has been padded so that the vertical bars line up consistently, and the numbers are aligned to the left as requested.