Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| import java.util.*; | |
| import java.util.stream.Collectors; | |
| class Main { | |
| public static void main(String args[]) { | |
| int[] numbers = new int[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}; | |
| String numberString = Arrays.stream(numbers).mapToObj(String::valueOf).collect(Collectors.joining("")).replaceFirst("(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3"); | |
| System.out.println(numberString); // => (123) 456-7890 | |
| // even shorter | 
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji | 
|---|---|
| Initial commit | 🎉 :tada: | 
| Version tag | 🔖 :bookmark: | 
| New feature | ✨ :sparkles: | 
| Bugfix | 🐛 :bug: |