29 May 24

TerminalTextEffects (TTE) is a terminal visual effects engine. TTE can be installed as a system application to produce effects in your terminal, or as a Python library to enable effects within your Python scripts/applications.

by mlb 1 year ago

27 Apr 24

OK, det verkar vara fixat från och med 3.8. Gillar den här lösningen.

Alla andra lösningar på den där sidan suger.

by 2097 1 year ago
Tags:

Seriöst?!

Svenska: “Vi har världens dåligaste språk.”
Python: “Håll min öl.”

by 2097 1 year ago
Tags:

11 Feb 24

Wow! This ended up working klockrent with a Ren’py game I got years ago in one of those social causes bundles on itch. I don’t have a Mac so I can’t compile & sideload stuff on my own for iPad so having a friend with Xcode helps tremendously. (I should set up a Hackintosh maybe, if that’s even possible 2024.) It also sucks that it also only works for a year.

by 2097 2 years ago

06 Feb 24

PieFed is lemmy/kbin clone written in Python with Flask:

by 2097 2 years ago

04 Feb 24

Q: Can Bear Blog be self-hosted?

A: Bear Blog has been built as a platform and not as an individual blog generator. It is more like Substack than Hugo. Due to this it isn’t possible to individually self-host a Bear Blog.

But that wasn’t the question, which was: can other instances of the platform be spun up?

I don’t know for sure but it does seem that way. It’s MIT licensed & it seems to be all there, caddy files and all. IDK.

So far, stumbling over a blog on Bear has been a heck of a lot less painful than stumbling over one on say, Medium. And I am grateful that there are alternatives to asking people to self host generated static files.

In the long run all “up-and-coming” sites usually are super nice with RSS & low-weight & interoperability & free icecream but what matters is whether that lasts. That said, Medium sucked from day one and this seems awesome several years in, so 🤷🏻‍♀️

by 2097 2 years ago

31 Jan 24

Convert curl to Python, JavaScript and more

by tobhar 2 years ago saved 4 times

22 Jan 24

Python’s well-known issue with default arguments can be succinctly and memorably explained by saying “It’s a default VALUE, not a default EXPRESSION.”

by mcherm 2 years ago

28 Dec 23

When you write a module in C’Dent, you can use it in a dozen different programming languages. For instance, you could write a module in Python and use it in JavaScript, or you could write a module in JavaScript and use it in Perl 6, Ruby or Java.

What a trip.

This is of limited use since it’s for logic, not for API stuff, and most apps write their own logic instead of relying on modules for logic, but I’ll have to try to remember that this exists for things that do rely on logic.

One example that does come to mind is an infix expression parser library that takes strings as input and returns numbers. Something like that could work with C’Dent.

Under “next steps” it says:

Add variables and assignments

Conclusion: completely useless for now without further hacking & patching.

by 2097 2 years ago

11 Dec 23

Aaron on how he wrote web.py:

I imagined how things should work and then I made that happen. Sometimes making things just work takes a lot of code. Sometimes it only takes a little.

by 2097 2 years ago