Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| function useAbortController(deps=[]) { | |
| const abortControllerRef = React.useRef<AbortController>() | |
| React.useEffect(() => { | |
| return () => abortControllerRef.current?.abort() | |
| }, deps) | |
| const getSignal = React.useCallback(() => { | |
| if (!abortControllerRef.current) { | |
| abortControllerRef.current = new AbortController() | 
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 | 
| // Determine if an element is in the visible viewport | |
| function isInViewport(element) { | |
| var rect = element.getBoundingClientRect(); | |
| var html = document.documentElement; | |
| return ( | |
| rect.top >= 0 && | |
| rect.left >= 0 && | |
| rect.bottom <= (window.innerHeight || html.clientHeight) && | |
| rect.right <= (window.innerWidth || html.clientWidth) | |
| ); | 
| { | |
| "version": "0.1.0", | |
| // List of configurations. Add new configurations or edit existing ones. | |
| // ONLY "node" and "mono" are supported, change "type" to switch. | |
| "configurations": [ | |
| { | |
| // Name of configuration; appears in the launch configuration drop down menu. | |
| "name": "Run app.js", | |
| // Type of configuration. Possible values: "node", "mono". | |
| "type": "node", | 
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/