Skip to content

Instantly share code, notes, and snippets.

View wuarmin's full-sized avatar
♥️
loves life

Armin wuarmin

♥️
loves life
  • Austria
View GitHub Profile
@wuarmin
wuarmin / controllers.application.js
Last active February 26, 2019 12:40
so-question-54874912
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@wuarmin
wuarmin / controllers.application.js
Last active November 22, 2018 10:58
sort_by_asnc_relationship_property
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Videos'
});
@wuarmin
wuarmin / calendar-months.component.js
Last active November 13, 2017 16:08
calendar-months2.0
import Ember from 'ember';
import moment from 'moment';
function withLocale(locale, fn) {
let returnValue;
if (locale) {
let previousLocale = moment.locale();
moment.locale(locale);
returnValue = fn();
moment.locale(previousLocale);
import Component from '@ember/component';
import { computed } from '@ember/object';
import layout from '../../templates/components/power-calendar/months';
import { scheduleOnce } from '@ember/runloop';
import { A as emberA } from '@ember/array';
import moment from 'moment';
function withLocale(locale, fn) {
let returnValue;
if(locale) {
<img src="{{root-url}}assets/images/Logo_400x100.png">
import ENV from '../config/environment';
import Configuration from 'ember-simple-auth/configuration';
import setupSession from 'ember-simple-auth/initializers/setup-session';
import setupSessionService from 'ember-simple-auth/initializers/setup-session-service';
export default {
name: 'ember-simple-auth',
initialize(registry) {
const config = ENV['ember-simple-auth'] || {};
@wuarmin
wuarmin / service_interface.rb
Last active May 10, 2017 07:15
Minitest/Spec Sharing Examples / Check if class implements the interface
module ServiceInterface
def self.included(base)
base.send :include, InstanceMethods
end
module InstanceMethods
def test
"test"
end
end
import Ember from 'ember';
export default Ember.Component.extend({
label: 'new tag',
type: '',
actions: {
add() {
let label = this.get('label');
let type = this.get('type');
@wuarmin
wuarmin / controllers.application.js
Last active August 16, 2016 16:36
inline if-conditional
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
prompt: 'Choose something...',
disablePrompt: true
});