| Function | Shortcut | 
|---|---|
| New Tab | ⌘+T | 
| Close Tab or Window | ⌘+W(same as many mac apps) | 
| Go to Tab | ⌘+Number Key(ie:⌘2is 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 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
    
  
  
    
  | /* | |
| Búsqueda binaria (Binary Search): Implementación de ejemplo. | |
| Recibe un array ordenado y el elemento a buscar. Si encuentra el elemento | |
| devolverá el índice del elemento encontrado, si no se encuentra devolverá `-1`. | |
| */ | |
| function binarySearch(array, item) { | 
  
    
      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
    
  
  
    
  | pragma solidity ^0.4.21; | |
| contract Lottery { | |
| address public manager; | |
| address[] public players; | |
| constructor() public { | |
| manager = msg.sender; | |
| } | 
  
    
      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
    
  
  
    
  | const classToObject = theClass => { | |
| const originalClass = theClass || {} | |
| const keys = Object.getOwnPropertyNames(Object.getPrototypeOf(originalClass)) | |
| return keys.reduce((classAsObj, key) => { | |
| classAsObj[key] = originalClass[key] | |
| return classAsObj | |
| }, {}) | |
| } | 
  
    
      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
    
  
  
    
  | const falsyValues = [undefined, null, 0, '', NaN] | |
| const isTruthy = (value) => !falsyValues.includes(value) | 
  
    
      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
    
  
  
    
  | val fullDate = DateTimeFormatter.ofPattern("yyyy-MM-dd") | |
| val getDates = (days: Int) => { | |
| val datesList = ListBuffer[String]() | |
| var count: Int = 0; | |
| for (i <- 1 to days) { | |
| datesList += fullDate.format(LocalDate.now().minusDays(i)) | |
| } | |
| datesList | |
| } | 
  
    
      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
    
  
  
    
  | var oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds | |
| var firstDate = new Date(2018,08,13); | |
| var secondDate = new Date(2019,02,25); | |
| var diffDays = Math.round(Math.abs((firstDate.getTime() - secondDate.getTime())/(oneDay))); | 
  
    
      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
    
  
  
    
  | This is only a test | |
| I guees i can add code | |
| ``` | |
| println("") | |
| ``` |