Amusing that these are the same length with or without the variable:
>>> all(map(Number.__instancecheck__, [1,2,3]))
True
>>> all(isinstance(x, Number) for x in [1,2,3])
True
Amusing that these are the same length with or without the variable:
>>> all(map(Number.__instancecheck__, [1,2,3]))
True
>>> all(isinstance(x, Number) for x in [1,2,3])
True
Sometimes I feel like I’m doing it wrong: that everyone else has a plan and I’m just coasting along. Then I remember that just like everyone else, I perform activities, accomplish tasks, feel complete, and feel incomplete.
From this question on Stack Overflow:
>> printf('%.2f', 2048.615)
2048.61
>> printf('%.2f', 2047.615)
2047.62
When you perfect the mental exercise of forming abstractions, a once automatic mechanism for coping with the vast world vanishes; every detail of every situation must be consciously addressed and filed.
Then compress them with various methods:
It’s impressive that the results of this pathological case span four orders of magnitude.
Add
ControlPath /tmp/%h-%p-%r.sock
ControlMaster auto
to your .ssh/config (either on top or in the host entry), then use
ssh -N github
(or whichever the remote is) to open the SSH window and wait. If you’re pushing and fetching lots of little things — deleting several branches, say — then they’ll all run through the same connection, saving on overhead.
Source: jleedev.deviantart.com
A novice was trying to fix a broken Lisp machine by turning the power off and on.
Knight, seeing what the student was doing, spoke sternly: “You cannot fix a machine by just power-cycling it with no understanding of what is going wrong.”
Knight turned the machine off and on.
The machine worked.
Source: catb.org