This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare global { | |
| interface Array<T> { | |
| filter(predicate: typeof Boolean): Exclude<T, undefined | null | false | 0 | ''>[] | |
| } | |
| } | |
| export default global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class FpsCounter { | |
| constructor(private maxSamples: number = 100) {} | |
| private samples: number[] = []; | |
| sample() { | |
| this.samples.push(Date.now()); | |
| if (this.samples.length > this.maxSamples) { | |
| this.samples.shift(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "key": "cmd+enter", | |
| "command": "workbench.action.terminal.focus", | |
| "when": "!terminalFocus" | |
| }, | |
| { | |
| "key": "cmd+enter", | |
| "command": "workbench.action.terminal.toggleTerminal", | |
| "when": "terminalFocus" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Force AHK to replace already running instance of this script with newer version if script is opened again while already running | |
| #SingleInstance force | |
| ; --------------- Windows --------------- | |
| ; Win+Tab = Alt+Tab | |
| <#Tab::AltTab | |
| >#Tab::AltTab | |
| ; --------------- Navigation --------------- |