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 { run } from '@ember/runloop'; | |
| import { computed } from '@ember/object'; | |
| const { stringify } = JSON; | |
| export default function(...props) { | |
| const { getState, update } = props.pop(); | |
| const strippedProps = props.map((prop) => { |
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({ | |
| store: Ember.inject.service(), | |
| count: 0, | |
| foo: null, | |
| init() { | |
| this._super(...arguments); |
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' | |
| }); |
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({ | |
| queryParams: ['endDate'], | |
| startDate: '09/01/2017', | |
| endDate: '09/30/2017' | |
| }); |
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({ | |
| greeting: 'Hello', | |
| actions: { | |
| showAlert(message) { | |
| const greeting = this.get('greeting'); | |
| alert(`${greeting}, ${message}!`); |
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 computed from 'ember-macro-helpers/computed'; | |
| import PromiseProxyMixin from '@ember/object/promise-proxy-mixin'; | |
| import { typeOf } from '@ember/utils'; | |
| import { all } from 'rsvp'; | |
| export default function(Proxy) { | |
| const PromiseProxy = Proxy.extend(PromiseProxyMixin); |
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 | |
| ### | |
| # PURPOSE | |
| # | |
| # Execute a VLAN "flop" to allow the AT&T Residential Gateway (RG) to perform | |
| # 802.1x authentication via the Optical Network Terminal (ONT) before falling | |
| # back to the subscriber's "own" router/gateway hardware. The RG is toggled off | |
| # and on as needed via a remote-controlled power outlet (see below). | |
| # | |
| # For more information about this procedure, please see brianlan's original |
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
| mkfs.ext4 -b 4k -C 128k -E num_backup_sb=0,packed_meta_blocks=1,root_owner=111:118 -O bigalloc,extent,flex_bg,^has_journal,mmp,sparse_super2 -L varnish-cache -N 64 -v /dev/sdc |
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 Controller from '@ember/controller'; | |
| import { tracked } from '@glimmer/tracking'; | |
| export default class ApplicationController extends Controller { | |
| @tracked | |
| prop; | |
| @tracked | |
| propDidUpdate = false; |