The GLib.timeout_add function is the GJS equivalent to both setTimeout
and setInterval
. It calls a given function repeatedly (such as func
) at given intervals until it returns a falsy value. It returns a GLib Source id, which just like clearTimeout
or clearInterval
can be removed with the static GLib …
SELECT ARTICLE WHERE ARTICLE.AUTHOR = "Dafne Kiyui";
-
-
batch renaming numbered files
The year is 2009 and your minimalist CD ripper, let's say
goobox
hasn't multi-CD support. The ripped content of both CD 1 & 2 are numbered incrementally from01
onwards, which isn't a problem if you organised your library by CD 1/2/etc, but you're rather flatten the directory because … -
generating video thumbnails in js
HTMLCanvasElements are amazing for all kinds of things. Paired with the CanvasRenderingContext2D's drawImage method, generating video thumbnails on browsers are incredibly easy. The interface for the method is as follows:
void ctx.drawImage(image, dx, dy); void ctx.drawImage(image, dx, dy, dWidth, dHeight); void ctx.drawImage(image …
-
how i created a trigger warnings modal, and removed it for accessibility
When I first had my coming out story reviewed by some queer peers, the initial feedback I received was that it required "trigger warnings" because it covered some pretty heavy topics.
My initial solution was simple;- add a row to the post information section highlighting the various trigger warnings in …
-
on taking a break
It is almost poetic justice that the last time I wrote was on Labour Day, 2019. Not long thereafter, I went on a slurry of vacations from Bangkok for 2 bachelor parties, Georgia for a wedding, a multitude of places for Europe, finally ending my streak by attending the Pride …
« page 2 / 2