Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)V
Posts
7
Comments
11
Joined
2 yr. ago

  • I stumbled over Gradience just yesterday but I tought it was archived sometime last year, is it still working accordingly?

  • Unfortunately not :/ But I do have rainbow-gradient window borders.

  • I suppose you're mainly concerned about LibAdwaita-Apps?

  • I was surprised to learn that

    • a) macOS only recently added Left/Right-tiling natively (without extensions, just like GNOME does)
    • b) they leave gaps when you tile them so that it looks like you messed up the tiling somehow
  • linuxmemes @lemmy.world

    When I try to go on a ricing journey again

  • Thanks a lot for the recommendation, I did enjoy the read!

  • I was wondering about encryption (is this what you're talking about?) because these algorithms change so frequently I'd be surprised if they had anything back then considered 'secure' by now.

  • No Stupid Questions @lemmy.world

    Is there any security in the communication with Voyager I?

  • Ask Lemmy @lemmy.world

    What is your favourite matrix client?

  • You could wrap the entirety of your file in a monster macro but you'd still have to assign the macro result to a variable you need to register, which doesn't sound viable to me at least.

    Maybe you can use a script that would extract all the trait implementations and create the boilerplate glue code for you, something like this:

     bash
        
    grep --recursive --only-matching "impl PluginFunction for \w*" functions/ | sed --quiet "s/functions\/\(.*\)\.rs:impl PluginFunction for \(\w*\)/crate::functions::\1::\2{}.register(\&mut functions_map)/p"
    
    
      

    I tried to recreate your situation locally but it may not match perfectly, maybe you'll have to adjust it a little. When I run it on my file tree which looks like this

     
        
    functions
    ├── attr.rs
    ├── export.rs
    └── render.rs
    
    1 directory, 3 files
    
    
      

    where every file has a content like this

     rust
        
    // comment
    
    pub struct MyAttrStructName {}
    
    impl PluginFunction for MyAttrStructName {
    
    }
    
      

    Then I receive the following output:

     rust
        
    crate::functions::attr::MyAttrStructName{}.register(&mut functions_map)
    crate::functions::export::MyExportStructName{}.register(&mut functions_map)
    crate::functions::render::MyRenderStructName{}.register(&mut functions_map)
    
      
  • Programmer Humor @programming.dev

    TemporalAccessor, TemporalAdjustor could just as well be Star Trek things

  • You can use backreferences \1 \2 etc. but you can also give them names explicitly.it looks like this: (?<name>inner-regex)Some flavors support it, kotlins doesn't apparently.

  • I don't actually know whether POSIX grep would support named groups :o

  • Programmer Humor @lemmy.ml

    Regex flavors

  • Programmer Humor @lemmy.ml

    What Parity Flag is that?

  • linuxmemes @lemmy.world

    getsockname()