• 0 Posts
  • 10 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle





  • Chars are just numbers, but yeah, an enum would work fine too, sure. The only advantage with using a char for it is that there’s no conversion needed for outputting them into strings so it’s a little easier. Less code, very readable, etc. Though yeah, thinking about it JQKA wouldn’t be numerically in the right order which could cause issues if the program did more than just implement HiLo




  • obosob@feddit.uktoSelfhosted@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    11 months ago

    You just use three backticks to start and end a code block, it’s just markdown.

    e.g.

    version: '3.4' 
      
    services:
       vaultwarden: 
         image: vaultwarden/server:latest 
         restart: always 
         # environment: 
         #   SIGNUPS_ALLOWED: 'false' 
         #   ADMIN_TOKEN: 'your authentication token' 
         ports: 
           - '127.0.0.1:8200:80' 
         volumes: 
           - vaultwarden-data:/data/ 
    ...