• 0 Posts
  • 13 Comments
Joined 1 year ago
cake
Cake day: July 18th, 2023

help-circle
  • #FF00FF

    In terms of physiology, the color is stimulated in the brain when the eye reports input from short wave blue cone cells along with a sub-sensitivity of the long wave cones which respond secondarily to that same deep blue color, but with little or no input from the middle wave cones. The brain interprets that combination as some hue of magenta or purple, depending on the relative strengths of the cone responses.

    In other words, our brains are like “🤷‍♂️, here’s a thing”









  • command! -range -nargs=1 PadColumns call PadColumns(<line1>, <line2>, <args>)
    
    function! PadColumns(start, end, columns)
        execute a:start.','.a:end.'s/\(.*\)\zs\s*$/\='.'repeat(" ", a:columns - len(submatch(1)))'
    endfunction
    

    Use by typing in Normal mode :PadColumns 20. This will add spaces after the line or selected lines to the column you specify (in this case, 20).

    You could probably improve this by getting the length of the longest line and so you dont need to specify the specific column to add spaces to (20), and instead just add say 5 spaces after longest line for all lines.



  • mrbn@lemmy.catoLinux@lemmy.mlTIL
    link
    fedilink
    arrow-up
    28
    ·
    1 year ago

    Reminds me of the “Op” wars on IRC. All users would be given @ status and the point was to kick everyone before you got kicked. Writing scripts for this was my first “taste” at programming.



  • Have you tried setting a breakpoint and seeing if it hits? Assuming the app you are debugging is just a Console.WriteLine("Hello World"); and no breakpoints are set, the app will execute, output hello world, and terminate. Which means you wouldn’t see anything happen in VS Code.

    If you are super new to all this, I would suggest you look for videos/articles on how to debug using visual studio code as they may provide some insights or concepts you may not already know.