424
you are viewing a single comment's thread
view the rest of the comments
[-] qx128@lemmy.world 58 points 4 months ago

Hahaha now code-golf it. One line FTW!

remove(Image.open(‘cl.jpeg’)).save(‘output.png’)

[-] Tangent5280@lemmy.world 58 points 4 months ago

If I find this in production I'm whipping your ballsack till you change it back.

[-] Jumuta@sh.itjust.works 19 points 4 months ago

import("rembg").remove(import("PIL").Image.open(‘cl.jpeg’)).save(‘output.png’)

[-] _edge@discuss.tchncs.de 15 points 4 months ago

Can i hire you?

[-] hackris@lemmy.ml 9 points 4 months ago

So I'm not going to change it

[-] madcaesar@lemmy.world 5 points 4 months ago

Code golf! I just learned something new 😂

[-] sexual_tomato@lemmy.dbzer0.com 10 points 4 months ago

https://codegolf.stackexchange.com/

Enjoy a new rabbit hole to dive down

[-] meekah@lemmy.world 2 points 4 months ago* (last edited 4 months ago)

You never heard of code Golf before? It's usually programming challenges where the goal is to use the smallest number of source code characters possible.

[-] Soulg@sh.itjust.works 2 points 4 months ago

I haven't either but I like it.

this post was submitted on 03 Apr 2024
424 points (89.1% liked)

Programmer Humor

31749 readers
162 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS