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) |
This file contains 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
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
This file contains 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
class Ingredient { | |
// implementation | |
} | |
class Milk extends Ingredient { | |
// implementation | |
} | |
class Beverage { | |
constructor(ingredient) { |
This file contains 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
class Milk { | |
// implementation | |
} | |
class Coffee { | |
constructor(milk) { | |
this.milk = milk | |
} | |
cost() { |
This file contains 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
class Car { | |
startEngine() {} | |
accelerate() {} | |
} | |
class Seat extends Car { | |
startEngine() { | |
// start engine... | |
} | |
accelerate() { |
This file contains 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
class Car { | |
startEngine() {} | |
accelerate() {} | |
backToThePast() {} | |
backToTheFuture() {} | |
} | |
class Seat extends Car { | |
startEngine() { | |
// start engine... |
This file contains 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
class Car { | |
startEngine() {} | |
accelerate() {} | |
} | |
class Seat extends Car { | |
startEngine() { | |
// start engine... | |
} | |
accelerate() { |
This file contains 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
class Rectangle { | |
constructor(width, height) { | |
this.width = width; | |
this.height = height; | |
} | |
getArea() { | |
return this.width * this.height; | |
} | |
} |
This file contains 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
class Rectangle { | |
constructor() { | |
this.width = 0; | |
this.height = 0; | |
} | |
setWidth(width) { | |
this.width = width; | |
} |
This file contains 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
class Printable { | |
function print() { | |
// ... | |
} | |
} | |
class Pdf extends Printable { | |
constructor(name, size) { | |
super(); | |
this.name = name; | |
this.size = size; |
NewerOlder