I will admit that it’s gotten a little slower since I installed a bajillion plugins, but it’s still barely noticeable (and not even close to, say, Atom)
I am thrilled to share that this year we are continuing Shog9’s tradition of sharing numbers on closed posts across the network. Please welcome stats that highlight how many questions were closed on different Stack Exchange sites in 2021:
Site
Asked
AskedAndClosed
PercentAskedAndClosed
All Cl...
code-golf integer array
Input a non-empty array of positive (greater than 0) integers. Output another non-empty array of positive integers which encode the input array. Output array does not use any numbers used in the input array.
Rules
Output array should not contain any numbers used in the in...
I swear birds have gotten away with corrupting the justice system - they get away with things like property damage, aggravated assault, theft, jaywalking and being a public nuisance yet they never get arrested nor do they get sentenced/fined in court.
just another reason birds don't make me happy.
but really though you'll be driving along a road and birds will just be standing there dangerously just standing there
if a human did that, they'd be yelled at and in some places fined
but the birds just get away with it
and then there's all the times birds poop on things like cars, statues, benches, all that sort of stuff
if a human ever did that, it'd be on the front page of the daily mail
(admittedly, 99% of the stuff on there is nonsense/tabloid stuff)
but when a bird does it, people just say "birds do be like that"
@RedwolfPrograms I honestly wish it had the project view thingy on the left like Atom does, since Chrome OS doesn't really have a terminal (so you have to use the linux one, and mount the Chrome OS filesystem), and its file manager is awful
hgl has a "scan" function called sc. What it does in general is a little bit abstract, so we will just talk about one specific way you can use it.
If we want to take a list of integers and get the partial sums of every prefix we can scan with + for sums and 0 as a starting value:
ghci> sc (+) 0 ...
Why do that when you can just mash random buttons until you learn the important ones? It's from like 1910, you only really need it in emergencies or on a server
Because that's the line companies use when they have made their systems impossible to be repaired or modified by anyone but themselves for the purposes of planned obsolescence.
Chromebooks may be convenient, I am not denying that. I am saying there is no reason this convenience should require google to engage in anti-consumer practices.
@RedwolfPrograms You seem to be framing this as if it were some moral debate over whether one should buy a chromebook when it's really not. As I said there are no alternatives, you have no choice to even make here.
An integer is called square-free if it is not a multiple of a perfect square other than 1. For example, 42 is square-free, but 44 is not because it is a multiple of the perfect square 4 = 2².
@user Not hard at all, IMO. :sp <filename> to open a second file, <Ctrl-w> w to switch between the two, :q to close the current one (or :wq, or ZZ or whatever).
Granted, I've only ever had two files open at once. More than two would get rather crowded.
@user by default: Ctrl+Bc to make a new window; Ctrl+BCtrl+B to switch between your two most recently used windows; Ctrl+Bn for next window; Ctrl+Bp for previous
If you put two vim buffers in every one of those 60 nested tmux instances, with two monitors and four terminal windows each, you could have 2 ** 64 files open in vim, with a maximum of five keystrokes to get to any one of them
Inspired by this Stack Overflow post.
Given an ascending-sorted array of possibly duplicated integers, your goal is to increment each number by a counter, starting at 0, that resets for each group.
Spec:
Any numbers may be negative (but if so, they'll be at the beginning, because the array is so...