mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-06-17 10:01:53 +02:00
Add the astronomer's method
It's all about randomness
This commit is contained in:
parent
d548420d77
commit
e835634d7d
1 changed files with 18 additions and 0 deletions
18
README.md
18
README.md
|
@ -378,3 +378,21 @@ Credit: @axelf4
|
||||||
```vim
|
```vim
|
||||||
:echom test_null_list()
|
:echom test_null_list()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## The astronomer's way
|
||||||
|
Credit: @idisposable
|
||||||
|
|
||||||
|
```python
|
||||||
|
from secrets import randbits
|
||||||
|
|
||||||
|
def heat_death():
|
||||||
|
return False
|
||||||
|
|
||||||
|
def increase_entropy():
|
||||||
|
return randbits(64)
|
||||||
|
|
||||||
|
while heat_death()==False:
|
||||||
|
increase_entropy();
|
||||||
|
|
||||||
|
print('The universe is dead, VIM no longer exists');
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue