Skip to content

Instantly share code, notes, and snippets.

View duyng2512's full-sized avatar
♥️
Focusing

duyntc duyng2512

♥️
Focusing
  • Viet Nam
View GitHub Profile
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<>();
}
@duyng2512
duyng2512 / EventLoop.java
Last active October 8, 2022 15:23
Event Loop Implementation
/*
Java implementation of Event Loop
Event Loop contain:
- List of event
- List of handler corresponding to each event data
*/
public final class EventLoop {
@duyng2512
duyng2512 / README.md
Created September 30, 2022 19:43 — forked from agnoster/README.md
My ZSH Theme

agnoster.zsh-theme

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