17
submitted 2 days ago* (last edited 2 days ago) by lens0021@programming.dev to c/rust@programming.dev
  • New CLI flag allows overriding the markdown flavor for a single run
  • Options: commonmark, gfm (GitHub Flavored Markdown)
  • Useful for testing files against different markdown specifications
[-] lens0021@programming.dev 9 points 4 days ago* (last edited 4 days ago)

There was postwowan, it is currently renamed to Hoppscotch https://github.com/hoppscotch/hoppscotch

11

cross-posted from: https://programming.dev/post/42658798

Mago 1.0.0 - the first stable release of the Mago PHP toolchain

[-] lens0021@programming.dev 7 points 1 week ago

Is it April Fool's Day already?

42
19

yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor

49
[-] lens0021@programming.dev 3 points 4 weeks ago* (last edited 4 weeks ago)

Currently, Amber does not even support Bash 2 because Bash 2 does not support the += operator. (ticket) However, I believe that POSIX compliance is on Amber's long-term milestone, and that it will eventually achieve this as its support range expands.

[-] lens0021@programming.dev 3 points 4 weeks ago

tbh, I wouldn't recommend that during alpha staging. There are still many bugs.

[-] lens0021@programming.dev 3 points 4 weeks ago

Yep, the code you provided is compiled into this:

command_0="$(cat file.txt | grep "READY")"
__status=$?
if [ "${__status}" != 0 ]; then
    echo "Failed to read the file"
fi

So, the outcome would depend on the pipefail option. (set -o pipefail)

As you suggested, an Amberic snippet would be:

import { file_read } from "std/fs"
import { match_regex } from "std/text"

const result = file_read("file.txt") failed {
    echo "Failed to read the file"
}
if match_regex(result, "READY"):
    echo "file.txt contains READY"
86

My primary use case for Amber is when I need to write a Bash script but don't remember the silly syntax. My most recent Bash mistake was misusing test -n and test -z. In Amber, I can just use something == "" or len(something) == 0

[-] lens0021@programming.dev 5 points 1 month ago* (last edited 1 month ago)

I will try this. I rarely open xls files and all the icons on libre Calc look... old. They feel like they're straight out of the year 2000 (which might be true). I tried changing the theme, but none of them suited my taste.

The bad thing is Collabora only provides a single flatpak file for Linux. I wish it would be served on flathub. I was so disappointed enough that I tried OnlyOffice yesterday, but all the UI components of OnlyOffice are too large for my screen and the available scaling factor options are 100%, 125%, and so on while what I really need 75%. There is a feature request for this by the way.

77
58
30
4
14
16

cross-posted from: https://programming.dev/post/40764432

AWS Lambda adds support for Rust - AWS

[-] lens0021@programming.dev 5 points 2 months ago

We are improving compilation performance through (1) parallel compilation in the compiler front-end, which delivers 20-30% faster builds, and (2) making the Cranelift backend production-ready for development use, offering roughly 20% faster code generation compared to LLVM for debug builds.

👍

[-] lens0021@programming.dev 3 points 2 months ago* (last edited 2 months ago)

If you're okay with ibus-hangul, you can configure the keyroard shortcut for Gram.

Click "Add" and press "한/영" key on the keyboard.

ibus

[-] lens0021@programming.dev 20 points 2 months ago* (last edited 2 months ago)

​All Korean keyboards, including the one on my LG Gram (which is a Korean model), have a dedicated key for switching between English and Korean (the "한영키"). Everyone who isn't technically inclined uses this key. Using Ctrl + Space is a bad user experience.

[-] lens0021@programming.dev 8 points 2 months ago

I want to read more, but sadly curl is the only article on the site.

[-] lens0021@programming.dev 3 points 2 months ago

Thank you for your kind words! Meanwhile, thanks to logging_strict, I discovered that GA and Beta milestones are set on the https://github.com/astral-sh/ty/milestones page, and the Beta milestone is 69% complete. Looking forward to ty's GA.

[-] lens0021@programming.dev 3 points 2 months ago* (last edited 2 months ago)

I posted because I was happy to see some software in growing up. If you are not comfortable, I will not post this kind again.

view more: next ›

lens0021

joined 2 months ago