A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| static class LRUCache { | |
| LinkedHashMap<Integer, Integer> map; | |
| // Linked List remain order of list | |
| int cap; | |
| public LRUCache(int capacity) { | |
| this.cap = capacity; | |
| map = new LinkedHashMap<>(); | |
| } |
| /* | |
| Java implementation of Event Loop | |
| Event Loop contain: | |
| - List of event | |
| - List of handler corresponding to each event data | |
| */ | |
| public final class EventLoop { |