mrbn

joined 2 years ago
[–] mrbn 2 points 1 year ago (1 children)
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 4 points 1 year ago (3 children)

I do not think that this is an existing feature in neovim, however this seems to work :%s/\(.*\)\zs\s*$/\=repeat(' ', 15 - len(submatch(1)))

Change 15 to the column desired. You could probably create a function where you pass the column number you want so that you dont have to type this string all the time.

[–] mrbn 10 points 1 year ago (1 children)

During a legislature hearing on Thursday, Antoine Bittar said he had been advocating for tougher drinking and driving legislation when the CAQ offered an opportunity for him and his partner, Élizabeth Rivera, to meet minister Geneviève Guilbault at an October 2023 fundraising cocktail.

Bittar said he and Rivera each paid $100 — the maximum annual political donation — because he felt it was a chance to press their cause and keep it from stagnating. The couple said they were offered four minutes with the minister, two minutes per person.

[–] mrbn 11 points 1 year ago

Cleaning up after myself at home by:

  • reducing the amount of things i have which i dont use (i had like 30 plates, 15 cups, etc at one time, now i have 4 of each type)
  • house cleaning weekly and tidying up here and there in between (so things dont pile up)
  • cooking my own meals instead of having take out all the time (this improved my overall health)
[–] mrbn 11 points 1 year ago

I just finished watching this episode! Like just now.

Anyways, Warf looked crushed after its disappearance.

[–] mrbn 1 points 1 year ago (3 children)

I am commenting on this section of the article:

"We and others have shown that these nanoplastics can be internalized into cells and we know that nanoplastics carry all kinds of chemical additives that could cause cell stress, DNA damage and change metabolism or cell function."

Somarelli said his own, yet-to-be-published work has found more than 100 "known cancer-causing chemicals in these plastics."

And also

What's disturbing, said University of Toronto evolutionary biologist Zoie Diana, is that "small particles can appear in different organs and may cross membranes that they aren't meant to cross, such as the blood-brain barrier."

My point being that it's unlikely that bottled water is the only source of these plastics.

[–] mrbn 7 points 1 year ago (6 children)

I wouldnt be so quick to blame all of this on water bottles when a high percentage of all the food we consume is packaged in plastic and also the left overs sitting in the fridge.

[–] mrbn 2 points 1 year ago

I picked up an Aarma Vorteks after paying with my brother's granite.

[–] mrbn 25 points 1 year ago (9 children)

I hope the gov (fed, prov, muni) are prepared to invest big time in infrastructure.

[–] mrbn 10 points 1 year ago (2 children)

He'll probably get better service if he calls his credit card company (hopefully he ordered using a credit card) and having them reverse the charges. He'll maybe have to wait 30 days, but since he has a police report and amazon isn't cooperating, I think the cc company will go ahead and do it.

Sure, he wont have a watch but at least he wont be out $2k

[–] mrbn 28 points 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.

view more: ‹ prev next ›