Make sure there is at least one file in it (even just the README.md)
ssh-keygen -t rsa -C "[email protected]"
| static String formatBytes(int bytes, int decimals) { | |
| if (bytes <= 0) return "0 B"; | |
| const suffixes = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; | |
| var i = (log(bytes) / log(1024)).floor(); | |
| return ((bytes / pow(1024, i)).toStringAsFixed(decimals)) + | |
| ' ' + | |
| suffixes[i]; | |
| } |
Make sure there is at least one file in it (even just the README.md)
ssh-keygen -t rsa -C "[email protected]"
| function sortSelectOptions(selectElement) { | |
| var options = $(selectElement + " option"); | |
| options.sort(function(a,b) { | |
| if (a.text.toUpperCase() > b.text.toUpperCase()) return 1; | |
| else if (a.text.toUpperCase() < b.text.toUpperCase()) return -1; | |
| else return 0; | |
| }); | |
| $(selectElement).empty().append( options ); |