Dart: List directory recursively (tree, ls) ls(String where, [String prefix]) { if(prefix == null) { prefix = ''; } var dir = new Directory(where); print(where); List contents = dir.listSync(); for (var fileOrDir in contents) { if (fileOrDir is File) { print(fileOrDir.path); } else if (fileOrDir is Directory) { print(fileOrDir.path); ls(fileOrDir.path, prefix + '-'); } } }
bashrc: calculator alias calc="ipython3 -i -c 'from math import *; import numpy as np' --no-confirm-exit --no-banner"