View on-key.js
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 { modifier } from 'ember-modifier'; | |
import { isArray } from '@ember/array'; | |
import { capitalize } from '@ember/string'; | |
import { isEmpty, isPresent, typeOf } from '@ember/utils'; | |
const { isInteger } = Number; | |
const parseKeys = arr => arr | |
.filter(_ => typeOf(_) === 'string') |
View controllers.application\.js
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 Controller from '@ember/controller'; | |
import { tracked } from '@glimmer/tracking'; | |
export default class ApplicationController extends Controller { | |
@tracked | |
prop; | |
@tracked | |
propDidUpdate = false; |
View cmdline.sh
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
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 |
View rg-refresh.sh
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
#!/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 |
View -computed-promise.js
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 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); |
View components.my-component.js
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'; | |
export default Ember.Component.extend({ | |
greeting: 'Hello', | |
actions: { | |
showAlert(message) { | |
const greeting = this.get('greeting'); | |
alert(`${greeting}, ${message}!`); |
View controllers.application.js
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'; | |
export default Ember.Controller.extend({ | |
queryParams: ['endDate'], | |
startDate: '09/01/2017', | |
endDate: '09/30/2017' | |
}); |
View controllers.application.js
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'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
View controllers.application.js
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'; | |
export default Ember.Controller.extend({ | |
store: Ember.inject.service(), | |
count: 0, | |
foo: null, | |
init() { | |
this._super(...arguments); |
NewerOlder