Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

lil5, to random
@lil5@fosstodon.org avatar

React Invoice Generator
https://lil5.github.io/react-invoice-generator/

I've added mobile support to React Invoice Generator, give it a go!

@amunizp

amunizp,
@amunizp@fosstodon.org avatar

@lil5
This is amazing great work!

lil5, to random
@lil5@fosstodon.org avatar

Crowdin uses git wrong
https://crowdin.com/

With the crowdin github integration it first downloads the entire repository every commit then syncs the translations with what it has.

Is translate better in this department?

tool

Codeberg,
@Codeberg@social.anoxinon.de avatar

@lil5 keeps permanent records of the Git repositories (their own copy of it). There are different options to integrate with it: You could pull the content from Weblate manually, you can have it push to your repo (separate branch or directly), or make it create a PR for you.

Weblate is Git-first, it is the source of truth. Modified translations are basically written to the repo and committed with a configurable delay.

lil5, to random
@lil5@fosstodon.org avatar

I added a template import/export tool for react-invoice-generator

Repo: https://github.com/lil5/react-invoice-generator

Website: https://lil5.github.io/react-invoice-generator/

Let me know what you think 💭

amunizp,
@amunizp@fosstodon.org avatar

@lil5
Oh OK. So how does one change the template?

lil5,
@lil5@fosstodon.org avatar

@amunizp it’s not mobile friendly atm

If you look at it from a desktop you’ll see the template upload and download buttons

lil5, to react
@lil5@fosstodon.org avatar

https://custom-elements-everywhere.com/

A list of JS frameworks and their support for Custom Elements

is the only one that doesn’t support Web Elements properly.

lil5, to django
@lil5@fosstodon.org avatar

gopy - github.com/go-python/gopy

A great way to speedup with

Generates the cpython glue code & compiles golang, to integrate into a project

https://pkg.go.dev/github.com/go-python/gopy#section-readme

lil5, to diy
@lil5@fosstodon.org avatar

While building cupboards, this tool helped me out with picking out how many boards to buy for cutting into shelves: https://www.opticutter.com

@muppeth might be something for you too

lil5, to typescript
@lil5@fosstodon.org avatar

In there are times when the the browser declaration lib.dom.d.ts is in my opinion too strict:

> Passing an invalid ID to clearTimeout() silently does nothing; no exception is thrown.
https://developer.mozilla.org/en-US/docs/Web/API/clearTimeout

And yet the declaration files only allow a number for clear timeout, while in the browser it works perfectly fine if I do: “clearTimeout(null)”.

evrys,

@peyremorgan @lil5 I like using noUncheckedIndexAccess for the same reason, it seems overly strict at first but it catches so many bugs when you think carefully about every index!

lil5,
@lil5@fosstodon.org avatar

@peyremorgan
This is a great mindset, I’ll try to take from this ❤️

@evrys @pipoprods thanks for all your replies

lil5, to typescript
@lil5@fosstodon.org avatar

I see people religiously abstaining from the any keyword, and as always being overly pedantic in code is a bad thing:

For example;
let arr = [1,2,null]
let Narr: number[] = arr.filter(n => n !== null)

This would fail tsc without adding “as any as number[]” at the end

peyremorgan,

@lil5 you can solve this with a custom type guard in your filter predicate:

let arr = [1, 2, null]
let Narr: number[] = arr.filter((n): n is number => n !== null)

lil5,
@lil5@fosstodon.org avatar

@peyremorgan but n is “number | null” it’s about what filter returns

Added “as” at the end makes more sense

lil5, to opensource
@lil5@fosstodon.org avatar

A project I contributed a small amount to, recently added a license: and I thought no much of it, until they started claiming that this license is “open source”

I created a pull request to replace it with “source available” but was rejected

https://github.com/mormaer/Mlem/pull/240

A warning to anyone who is interested contributing that this is not GPLv3 software it’s CommonsClaused 🔒

danb,
@danb@fosstodon.org avatar

@lil5 I further queried some of their thoughts in https://github.com/mormaer/Mlem/pull/173, in hopes to make them understand this is not open source, otherwise some folks can be stubborn to want to give themselves competitive advantage while using "open source" for marketing.

I've also added this as a case to track for https://github.com/ssddanbrown/Open-Source-Confusion-Cases.

lil5,
@lil5@fosstodon.org avatar

@danb Thanks for linking to the other pull request, and for adding the project to that list I’ll be checking that list before contributing from now on.

I was one of the contributors to approve the license PR in the first place not knowing they’d call it open source or make GitHub think it’s licensed under the GPL.

This whole thing feels disingenuous at this point.

lil5, to random
@lil5@fosstodon.org avatar
blake,

@lil5 not me having just registered bleon.zip as a link shortener 🤐

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • provamag3
  • tacticalgear
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines