As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| function makeFakeConsole(func){ | |
| return new Proxy({},{ | |
| get:function(target,name,receiver){ | |
| return function(){ | |
| //at some point if array.from gets implimented | |
| //func(name,Array.from(arguments)); | |
| func(name,Array.prototype.slice.call(arguments)); | |
| } | |
| } | |
| }); |
| const handler = { | |
| get(target, propKey, receiver) { | |
| if (/^_[0-9]+$/.test(propKey)) { | |
| const result = []; | |
| const first = Number(receiver); | |
| const last = Number(propKey.slice(1)); | |
| for (let i=first; i<=last; i++) { | |
| result.push(i); | |
| } | |
| return result; |
| 1) https://leetcode.com/problems/two-sum/ | |
| sum([1, 2, 5, 3, 4], 9) -> [2, 4] | |
| find closest sum | |
| sum([1, 8, 5, 6, 4], 15) -> [1, 3] | |
| 2) rotateMatrix([ | |
| [1, 2], | |
| [3, 4] | |
| ]); | |
| Result |