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 rafScheduler = (fn) => { | |
| let lastArgs = []; | |
| let frameId = null; | |
| return (...args) => { | |
| // Always capture the latest value | |
| lastArgs = args; | |
| // There is already a frame queued | |
| if (frameId) { | 
  
    
      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
    
  
  
    
  | import Ember from 'ember'; | |
| const REGEX_GET_DEPS = /[^[\]]+(?=])/g; | |
| const REGEX_REPLACE = /\[(\w+)\]/g; | |
| const DELETE_SYMBOL = '$$DELETE$$'; | |
| const interpolate = (text) => { | |
| const deps = text.match(REGEX_GET_DEPS); | |
| return Ember.computed(...deps, function(){ | 
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| target_branch="production" | |
| working_tree="PATH_TO_DEPLOY" | |
| while read oldrev newrev refname | |
| do | |
| branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
| if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then | |
  
    
      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
    
  
  
    
  | // Place your settings in this file to overwrite the default settings | |
| { | |
| "editor.fontFamily": "Operator Mono", | |
| "editor.fontLigatures": true, | |
| "editor.fontSize": 14, | |
| "editor.tabSize": 2, | |
| "editor.lineHeight": 22, | |
| "editor.formatOnType": true, | |
| "editor.tabCompletion": true, | |
| "editor.fontLigatures": true, | 
  
    
      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
    
  
  
    
  | Object.defineProperty(window, Symbol.for('registry'), { | |
| value: new Map(), | |
| }); | |
| window.importScript = src => { | |
| const registry = window[Symbol.for('registry')]; | |
| if (registry.has(src)) { | |
| return registry.get(src).promise; | |
| } | 
  
    
      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
    
  
  
    
  | // http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/ | |
| function hsv_to_rgb(h, s = 0.5, v = 0.95) { | |
| let _h = ( Math.random() + 0.618033988749895 ) % 1; | |
| h = h || _h; | |
| let h_i = Number((h*6).toFixed(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
    
  
  
    
  | [...document.styleSheets[0].rules].filter(sel => sel.cssText.startsWith('@font-face') ).map(sel =>sel.style.fontFamily) | 
  
    
      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
    
  
  
    
  | /** | |
| * Size of one chunk when requesting with Range | |
| * @type {Number} | |
| * @private | |
| */ | |
| const CHUNK_SIZE = 204800; | |
| /** | |
| * Concat two ArrayBuffers | |
| * @param {ArrayBuffer} ab1 | 
  
    
      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
    
  
  
    
  | import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| checked:[], | |
| grp: [ | |
| { d: 'a' , v: false }, | |
| { d: 'b' , v: false }, | |
| { d: 'c' , v: false }, | |
| { d: 'd' , v: false } | 
  
    
      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
    
  
  
    
  | import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| classNames:['ui-input'], | |
| classNameBindings:[ | |
| 'isFilled:has-value' | |
| ], | |
| currentValue: '', | |
| isFilled: Ember.computed.notEmpty('currentValue'), | |
| }); |