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
/** | |
* FpsAutoTuner works by measuring the FPS (which you tell it by calling | |
* `countFrame()`) and then every so often (at `tuningInteval`ms), it compares | |
* that measured FPS to the `fpsTarget`. When the measured FPS goes below `fpsTarget` less | |
* `tuningMargin`, the `fpsTarget` will be decreased by | |
* `tuningRate` and the `callback` will be execute with the new `fpsTarget`. Likewise, | |
* when the measured FPS exceeds `fpsTarget` less `tuningMargin`, then `fpsTarget` | |
* will be increased by `tuningRate` and `callback` will be called with the new target. | |
* | |
* Example usage: |
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
"use strict"; | |
const fs = require('fs'); | |
/** | |
Really Simple Single-File-Component Support for Ember 3.x+ | |
By Josiah Bryan <josiahbryan@gmail.com> 2018-09-07 | |
(Posted for discussion at https://discuss.emberjs.com/t/really-simple-single-file-component-support-for-ember-3-x/15438) | |
Hey everyone! I'm designing a new hobby project, and I really wanted to work with single file |
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
import Ember from 'ember'; | |
/** | |
@function LiveDependantListMixinFactory | |
@param listPropertyName {String} or {Object} - if a string, will be the name | |
of the destination property that you can use in your template as the list. | |
If this param is an object with at least `{selectAs,from}` defined, | |
it will be used as the values for the following args (they will be overwritten | |
with values from the object) | |
@param fromStoreModel - ember-data model name to select from |
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
<!DOCTYPE html> | |
<html style='height:100%;overflow:none'> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>My App</title> | |
<meta name="description" content="My App by My Company, Inc."> | |
<!-- http://www.favicon-generator.org/ generates a good starting manifest that I tweak by hand --> | |
<link rel="manifest" href="/manifest.json"> |
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
PUT /my_index/ | |
{ | |
"mappings": { | |
"data": { | |
"properties": { | |
"_stringified": { | |
"type": "text", | |
"fields": { | |
"autocomplete": { |
NewerOlder