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
    
  
  
    
  | { | |
| "ios": { | |
| "debug": { | |
| "buildFlag": [ | |
| "SWIFT_VERSION = 3.0", | 
  
    
      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
    
  
  
    
  | //Author: Alejandro Enríquez | |
| //Email: alejandro@bixlabs.com | |
| //Merge the group of values that overlap | |
| //Input: [[1,3],[2,6],[8,10],[15,18]] | |
| //Output: [[1,6],[8,10],[15,18]] | |
| //Input: [[1,4],[4,5]] | 
  
    
      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
    
  
  
    
  | return handlerInput.responseBuilder | |
| .addDelegateDirective({ | |
| name: 'AddNewMedicine', | |
| confirmationStatus: 'NONE', | |
| slots: {} | |
| }) | |
| .speak(language.ADD_MEDICINE_MSG) | |
| .reprompt(language.ADD_MEDICINE_MSG) | |
| .getResponse(); | |
  
    
      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
    
  
  
    
  | def inSecuence(compareArray, sequenceArray, index, depth): | |
| #we found one ocurrence | |
| if depth > len(sequenceArray) - 1: | |
| return True | |
| #we got to the end with no ocurrence | |
| elif index > len(compareArray) - 1: | |
| return False | |
| #we found the next number on the secuence so we go deeper | |
| elif compareArray[index] == sequenceArray[depth]: | |
| return inSecuence(compareArray, sequenceArray, index + 1, depth + 1) | 
  
    
      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
    
  
  
    
  | // have ready the icon as an SVG image. | |
| // Get the icon in SVG format (from Font Awesome 34 or any similar site) | |
| // save SVG file to folder: src/assets | |
| // add css class to app.scss | |
| /*custom Ionicon icon*/ | |
| ion-icon { | |
| &[class*="custom-"] { | |
| mask-size: contain; | |
| mask-position: 50% 50%; | |
| mask-repeat: no-repeat; | 
  
    
      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
    
  
  
    
  | function removeDuplicates(myArr, prop) { | |
| return myArr.filter((obj, pos, arr) => { | |
| return arr.map(mapObj => mapObj[prop]).indexOf(obj[prop]) === pos; | |
| }); | 
  
    
      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
    
  
  
    
  | You have to pass it imperatively like: | |
| loadChild(): void { | |
| this._cr.resolveComponent(Child1Component).then(cmpFactory => { | |
| let cmpRef = this.childContainer.createComponent(cmpFactory); | |
| cmpRef.instance.var1 = someValue; | |
| }); | |
| } | |
| also similar with registering handlers for outputs. |