Skip to content

Instantly share code, notes, and snippets.

@abbyzhang21
abbyzhang21 / iterm2.md
Created August 25, 2019 20:50 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@abbyzhang21
abbyzhang21 / Abby_Zhang_Leap.md
Last active October 20, 2019 20:42
My resume #leap #microsoft
@abbyzhang21
abbyzhang21 / abby's solution
Last active July 4, 2019 23:09
Finding the Pairs of Indices
// A function in JavaScript that accepts an array of integers and a number x as parameters, when invoked, returns an array of unique indices of two numbers whose sum is equal to x.
// For example: [1, 3, 4, 5, 6, 8, 10, 11, 13], Sum: 14
// Pairs of indices: [0, 8], [1, 7], [2, 6], [4, 5]
function pairSum(arr, x){
var pairs= [];
var pairIndex = [];
for (var i = 0; i < arr.length; i++) {
for (var k = i+1; k < arr.length; k++) {
if (arr[i]+arr[k]== x) {