Skip to content

Instantly share code, notes, and snippets.

Sam Selikoff samselikoff

Block or report user

Report or block samselikoff

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@samselikoff
samselikoff / controllers.application.js
Created May 16, 2019
Ember Animated #109 - duration mismatch with fade transition and `<AnimatedContainer>`
View controllers.application.js
import Ember from 'ember';
import fade from 'ember-animated/transitions/fade';
export default Ember.Controller.extend({
fade
});
@samselikoff
samselikoff / controllers.application.js
Last active Jun 3, 2019
Ember Animated boilerplate
View controllers.application.js
import Ember from 'ember';
import fade from 'ember-animated/transitions/fade';
export default Ember.Controller.extend({
fade
});
@samselikoff
samselikoff / component.js
Created May 3, 2019
First pass at a LoadRecords component
View component.js
import Component from '@ember/component';
import { task } from 'ember-concurrency';
import { inject as service } from '@ember/service';
export default Component.extend({
tagName: '',
store: service(),
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View async-throws.js
import Ember from 'ember';
let originalLoggerError;
let originalTestAdapterException;
let originalOnError;
let originalConsoleError;
function intercept(f = () => {}) {
originalLoggerError = Ember.Logger.error;
originalTestAdapterException = Ember.Test.adapter.exception;
View ui-md-styles.scss
.ui-md {
@extend .leading-normal;
@extend .ff-copy;
@extend .text-4;
h1, h2, h3, h4, h5, h6 {
@extend .leading-tight;
@extend .ff-title;
@extend .font-medium;
}
View podcast-test.diff
diff --git a/tests/acceptance/podcast-episode-test.js b/tests/acceptance/podcast-episode-test.js
new file mode 100644
index 0000000..cf3363e
--- /dev/null
+++ b/tests/acceptance/podcast-episode-test.js
@@ -0,0 +1,41 @@
+import { test } from 'qunit';
+import moduleForAcceptance from 'ember-map/tests/helpers/module-for-acceptance';
+
+moduleForAcceptance('Acceptance | Podcast episode page', {
View controllers.application.js
import Ember from 'ember';
import { alias, gt, sort } from '@ember/object/computed';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
letters: [
{ name: 'b' },
{ name: 'c' },
View components.dropdown-list-item.js
import Component from '@ember/component';
import { computed } from '@ember/object';
export default Component.extend({
mouseEnter() {
this.setActiveItems(this);
},
mouseLeave() {
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
activeClass: 'faded-in',
actions: {
toggleActiveClass() {
if (this.activeClass === 'faded-in') {
You can’t perform that action at this time.