sudo apt install virtualenvwrapper # Ubuntu
sudo pip install virtualenvwrapper # Mac or Ubuntu
mkvirtualenv --python=`which python3` <vir_env_name>
// .then block does not complete | |
Future<void> foo_then_bad() async { | |
final future = Future(() => print('foo_then_bad: started')) | |
.then((_) async => () async { | |
await Future.delayed(Duration(seconds: 1), null); | |
print('foo_then_bad: 111'); | |
await Future.delayed(Duration(seconds: 1), null); | |
print('foo_then_bad: 222'); | |
}); | |
I hereby claim:
To claim this, I am signing this object:
(defun my/org-random-heading () | |
"Jump to a random org heading in the current org file." | |
(interactive) | |
(goto-char (point-min)) | |
(let ((headings '())) | |
(while (re-search-forward "^\\*+ " nil t) | |
(push (point) headings)) | |
(when headings | |
(goto-char (nth (random (length headings)) headings)) | |
(org-reveal)))) |