June · @june
356 followers · 136 posts · Server toulouse.social

Si ça intéresse du monde, j’ai appris hier soir qu’il existe une version open source et auto-hébergeable de Gist, l’outil de Github, ça s’appelle Drift. J’ai beaucoup utilisé Gist à une époque et je trouvais dommage d’être dépendante de Github, alors si comme moi d’autres personnes en auraient utilité, voici le lien.

drift.maxleiter.com/home

#gist #git #drift #opensource #github

Last updated 1 year ago

Stark · @Stark9837
114 followers · 2581 posts · Server techhub.social

I sometimes just love !

I am busy with testing for my next implementation, for a remindMe bot idea.

The main idea is to allow users to mention it and say `@botAccount 2 weeks 3 days 2 hours 5 minutes`, which would then in turn message them, reminding them of the post which they replied to with this comment.

Such functionality can sometimes be difficult, and regex gets its hate for speed, complexity and readibility. But this just works great in for a problem like this.

Here is the of an early prototype and example for those interested!

gist.github.com/e-dreyer/ce0f5

#regex #mastobot #python #gist

Last updated 1 year ago

Stark · @Stark9837
496 followers · 2543 posts · Server techhub.social

I just found free and code snippets manager for . It helps you create and organize your own personal snippet collection and have quick access to it.

It doesn't have the online sharing capabilities of , obviously, but I like the idea. I've been meaning to create a library of design patterns for myself. Using is too public for sensitive information, and it isn't as accessible as a local implementation, although it does support versioning.

masscode.io/

#masscode #opensource #developers #gist

Last updated 1 year ago

dewomser · @dewomser
247 followers · 1677 posts · Server social.tchncs.de

ist ein Werkzeug für die Kommandozeile um eigene gists zu verwalten.
Nachdem ich xclip installiert habe, kopiert es auch die Zwischenablage nach gist.

gist -P

😃 👍
github.com/defunkt/gist

#gist #github

Last updated 1 year ago

Stark · @Stark9837
492 followers · 2538 posts · Server techhub.social

@folkerschamel recently introduced me to product in . At first, it was odd and weird, but it really makes nested loops more elegant.

Original post: mastodon.social/@folkerschamel

Here is the of a great example: gist.github.com/e-dreyer/81b5b

@Python

#python #gist

Last updated 1 year ago

Stark · @Stark9837
485 followers · 2536 posts · Server techhub.social

@baderdean

The best solution is to proably make an ABC class of dict and then parse the JSON and throw your own exceptions.

I recently did something similar with the config files for my bots. I have a ConfigAccessor class, which reads a YAML file to a dict. What I found was, that if a user miss-configured their file, everything crashed due to missing keys etc.

So I made this class which handled it for me, and I just treat it like a normal dictionary. Here is the

gist.github.com/e-dreyer/878d2

@Python

#gist #python

Last updated 1 year ago

stark@techhub:~$ █ · @Stark9837
481 followers · 2496 posts · Server techhub.social

@folkerschamel @djvdq

Final one, you just triggered my itch. Copying missing keys between dicts.

This one, for example, I used with an plugin:

gist.github.com/e-dreyer/eb421

@Python

#python #octoprint #gist

Last updated 1 year ago

stark@techhub:~$ █ · @Stark9837
471 followers · 2424 posts · Server techhub.social
stark@techhub:~$ █ · @Stark9837
471 followers · 2424 posts · Server techhub.social

@baderdean

I got it to work now. Seems because you need to use asyncio.run() you need to wrap al the functions with async, then have another function which you then call.

Will share the once I clean it up.

@Python

#gist #python #programming

Last updated 1 year ago

stark@techhub:~$ █ · @Stark9837
448 followers · 2327 posts · Server techhub.social

I am busy messing around with , for API consumption, but the API library isn't implemented with asyncio.

I can either fork the library and possibly switch its request object with an async version, but often we might not be able to do this and we need to work with blocking functions.

I struggled to get this working in my current code, so I tried it in another file and got it to work. There are still a few things I could change, allowing for more threads and using an executor, but here is the

gist.github.com/e-dreyer/82196

#python #async #gist

Last updated 1 year ago

dewomser · @dewomser
245 followers · 1539 posts · Server social.tchncs.de

Ich hab sie für Girhub ausprobiert. Und sie funktioniert. mit curl und mit mit dem Kommando gist
(Man braucht ein Token)

docs.github.com/en/rest/gists?

#api #gist

Last updated 1 year ago

BMO · @bmo
0 followers · 1 posts · Server techhub.social

Better <sub> and <sup> tags.

sup, sub {
position: relative;
vertical-align: middle;
font-size: 75%;
font-weight: normal;
}

sup {
bottom: 0.5em;
}

sub {
top: 0.5em;
}

gist.github.com/onsamyj/bb3a78

#html #css #code #snippet #gist

Last updated 1 year ago

havchr · @havchr
50 followers · 220 posts · Server mastodon.gamedev.place

just sharing A little to adjust the pivot of a parent object in Unity by context menu in the hierarchy.

Hope it's useful for someone!

gist.github.com/havchr/3fcbee6

#unity3d #gist

Last updated 1 year ago

Chris Drumgoole · @cdrum
20 followers · 245 posts · Server cdrum.social

Found this very handy script (and comment thread) to allow me to break free from paying about USD 0.18 a month for the past almost 2 years) for an errant vault I had lying around with some 2,000+ archives in it. I was too lazy to do anything about it until this weekend. And thanks to AWS, you can’t effectively manage a Glacier’s vault from the web console. 🤷‍♂️ gist.github.com/veuncent/ac21a

#aws #glacier #python #gist

Last updated 1 year ago

zeruhur · @zeruhur
187 followers · 3 posts · Server dice.camp

📢 Exciting news! Today, Zotiquest Games is showcasing! Check out my website at zotiquestgames.com for updates.

🌐 Migrating subsites and web SRDs from zeruhur.space to GIST's web SRD. Stay tuned!

📧 Contact me: zotiquest.games@gmail.com.

#zotiquestgames #gist

Last updated 1 year ago

Lorenzo Cesa · @L_Cesa
0 followers · 646 posts · Server respublicae.eu

RT @AntonioDePoli: 🔴📣 In abbiamo presentato il protocollo di intesa tra @UNPLI e Stampa Turistica, una sinergia positiva per valorizzare la tradizione culturale ed enogastronomica della nostra bellissima Italia. Guarda qui 👉 antoniodepoli.it/index.php/fir
t.co/skPswnM4eB

🐦🔗: n.respublicae.eu/L_Cesa/status

#Senato #ProLoco #gist #Turismo #turismolento

Last updated 1 year ago

Jonathan Kamens · @jik
507 followers · 2324 posts · Server federate.social

: embeds in vanilla has stopped working. Here's how to get it back.
You used to be able to embed a GitHub Gist in a WordPress blog posting by pasting the URL of the Gist. This recently stopped working. The WordPress devs claim they haven't changed anything and this must be because GitHub was previously supporting oEmbed (oembed.com/) but has stopped. 1/?

#psa #github #gist #WordPress

Last updated 1 year ago

Aral Balkan · @aral
34158 followers · 24596 posts · Server mastodon.ar.al

The Stripe API doesn’t include a way to validate publishable and secret API keys.

Here’s a simple function you can use to do that:
codeberg.org/aral/gists/src/br

#stripe #api #stripeapi #js #nodejs #web #dev #gist

Last updated 2 years ago

Aral Balkan · @aral
33959 followers · 24534 posts · Server mastodon.ar.al

SystemError typedef for Node.js (gist)

codeberg.org/aral/gists/src/br

Node.js doesn’t expose the SystemError class in any way. This JSDoc type definition works around this limitation.

#nodejs #codeberg #gist #jsdoc

Last updated 2 years ago

Valère · @valere
6243 followers · 6091 posts · Server hostux.social

: GitHub - thomiceli/opengist: Self-hosted pastebin powered by Git link.hostux.net/shaare/oQJY-g github.com/thomiceli/opengist

#link #pastebin #Git #gist #selfhosted

Last updated 2 years ago