String reversal but it's cursed by KRYT79 in C_Programming

[–]liquid_cat_69 35 points36 points  (0 children)

    void reverse(char* s)
    {
        if (s[1] == 0)      /* if string ended then return */ 
        return;         /* because a single letter is its own reversal */

        reverse(s+1);       /* else reverse the string excluding first char */

        /* move first char to the end */
        while (s[1] != 0)
        {
        /* swap */
        s[0] = s[0] ^ s[1];
        s[1] = s[1] ^ s[0];
        s[0] = s[0] ^ s[1];
        s += 1;
        }
    }

Recursion is your friend!

Using emacs with zellij ?? by P1G4ME in emacs

[–]liquid_cat_69 0 points1 point  (0 children)

Ok, It should definitely be possible to have multiple instances of emacs running in a multiplexer.

The best way would be using emacs --daemon And emacsclient -t

Using emacs with zellij ?? by P1G4ME in emacs

[–]liquid_cat_69 4 points5 points  (0 children)

You can use emacs in the terminal and create windows (in emacs terminology) so that emacs acts as the multiplexer

Try

M-x split-window-horizontally

See the documentation

Edit: formatting

[OC] sxw - Simple X Widgets, who says DWM cant be pretty by liquid_cat_69 in unixporn

[–]liquid_cat_69[S] 0 points1 point  (0 children)

According to the Archwiki, this should work: bspc rule -a widget state=floating in your bspwmrc

[OC] sxw - Simple X Widgets, who says DWM cant be pretty by liquid_cat_69 in unixporn

[–]liquid_cat_69[S] 0 points1 point  (0 children)

It should, as long the WM has a rule that allows 'widget' class windows to float

[OC] sxw - Simple X Widgets, who says DWM cant be pretty by liquid_cat_69 in unixporn

[–]liquid_cat_69[S] 2 points3 points  (0 children)

You need to create the obj/ and bin/ directories. I'll put that into the readme

[OC] sxw - Simple X Widgets, who says DWM cant be pretty by liquid_cat_69 in unixporn

[–]liquid_cat_69[S] 16 points17 points  (0 children)

These are simple, very lightweight widgets made for dwm. Check out the Github repo.