You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
György Kiss
kissgyorgy
Enthusiastic (as you can see above) Software Developer and System Engineer.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
the command zig run my_code.zig will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
This walk through comes from @GalacticFurball who tweeted two images
representing the youtube_dl source code as of
2020-09-20. They mentioned later in the thread that they struggled converting the gzip-compressed tarball of the source
code with Imagemagick to a PNG, so they ended up using a 3rd party website to do the work. This Gist will show you how
to do it cleanly and exactly.
Instructions
If you would like to convert any non-image binary into PNG, Imagemagick makes this trivial. I will be executing the
commands on a Debian Linux system, so you may need to adjust the commands for BSD, macOS, or Windows as necessary.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a simpler version of async->greenlet->async written by @CaselIT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I seem to have two cents to offer so here it is. An obscure issue in the
Python bug tracker is probably not the right place for this so consider this as
an early draft of something that maybe I'll talk about more elsewhere.
> This basically divides code into two islands - async and non-async
An asyncio program that runs rows into a Postgresql database, using blocking style code to actually run the database commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
An asyncio program that runs rows into a Postgresql database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write a program in asyncio, that calls into a library that knows nothing about asyncio, which then calls out to a database adapter that is only asyncio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters