19

Introducing blocks.programming.dev! This is a site to add small code snippets you make for sharing easily in threads in programming.dev if you need to do something like put the same code in multiple spots.

The site is running using software called opengist and is essentially an equivalent to gists in github. Repo for it is here https://github.com/thomiceli/opengist.

Snippets are accessible both in the web interface and using git if you prefer adding in code from your text editor and then pushing it.

You can find the site here: https://blocks.programming.dev.

top 3 comments
sorted by: hot top controversial new old
[-] LinearArray@programming.dev 3 points 4 months ago

Wow, this is cool and pretty helpful. Thanks!

[-] otter@lemmy.ca 3 points 4 months ago* (last edited 4 months ago)

Really cool! Could that code be rendered as markdown afterwards?

I posted this in !fediverse@lemmy.world some time ago about guides and megathreads going out of date.

https://lemmy.ca/post/6390931

This might be a good way to handle stuff like that, so you only have to edit in one place. Even if it doesn't render, having a plaintext guide might be ok?

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

Not in lemmys current markdown system

Can theoretically be parsed and embedded though but can't control all frontends people use

Only thing that works atm is linking to it

We have another site more oriented towards images and text and then linking those at files.programming.dev but its limited to admins. e.g. of something on that http://files.programming.dev/u/9jsOS3.md

this post was submitted on 28 Feb 2024
19 points (95.2% liked)

Programming.dev Meta

2365 readers
1 users here now

Welcome to the Programming.dev meta community!

This is a community for discussing things about programming.dev itself.

Links

Credits

founded 1 year ago
MODERATORS