I used LLM to format my markdown table (ಥ ͜ʖಥ)
- 0 Posts
- 8 Comments
Joined 2 years ago
Cake day: July 1st, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
JaddedFauceet@lemmy.worldto Programmer Humor@programming.dev•My corporate anti-virus doesn't let me add scanning exclusions4·6 months ago23 USD
not all are paid equally
JaddedFauceet@lemmy.worldto Programmer Humor@programming.dev•so my friend asked me to explain whats an rss feed1·10 months agoit is HTJS now
React it is then 😄. It only has 2 dependencies:
- react - loose-envify - js-tokens
Likely they want a lower time complexity.
for example a question can be trivially solved in O(n^2). but there is no know < O(n) solution, so they ask for O(n)
What do you want to use for frontend framework then?
python, ruby, java, C? Invent a new language?
you will see me screaming “X is for Y, it should have never been a whole framework for a frontend”
By banishing the bad part of the language with linter.
For instance, standard eslint preset has rules that enforce usage of
===
, https://eslint.org/docs/latest/rules/eqeqeqThese rules often come with project starter template
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.