Skip to content

Instantly share code, notes, and snippets.

View phillipkregg's full-sized avatar
💭
Kick it!

Phil Lackey phillipkregg

💭
Kick it!
  • Nashville, TN
View GitHub Profile
@phillipkregg
phillipkregg / custom-css.css
Last active April 11, 2019 15:08
custom-css
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700");@import url("https://fonts.googleapis.com/css?family=Oswald:300,400,500,700");@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700");@import url("https://fonts.googleapis.com/css?family=Oswald:300,400,500,700");@import url(https://fonts.googleapis.com/css?family=Oswald);@font-face {
font-family: 'Glyphicons Halflings';
src: url("../fonts/glyphicons-halflings-regular.eot");
src: url("../fonts/glyphicons-halflings-regular.eot?#iefix") format("embedded-opentype"),url("../fonts/glyphicons-halflings-regular.woff2") format("woff2"),url("../fonts/glyphicons-halflings-regular.woff") format("woff"),url("../fonts/glyphicons-halflings-regular.ttf") format("truetype"),url("../fonts/glyphicons-halflings-regular.svg") format("svg")
}
.glyphicon {
position: relative;
top: 1px;
display: inline-block;
@phillipkregg
phillipkregg / controllers.application.js
Last active August 15, 2018 15:50
Store Test Save Model
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
persons: Ember.computed('store', function() {
return this.get('store').peekAll('person');
}),
actions: {
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
testArray: [
Ember.Object.create({name: 'first', isChecked: true}),
Ember.Object.create({name: 'second', isChecked: true}),
Ember.Object.create({name: 'third', isChecked: true}),
Ember.Object.create({name: 'fourth', isChecked: true})
],
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
fromControllerToTemplate: Ember.computed('model', function() {
return this.get('model');
})
});
@phillipkregg
phillipkregg / controllers.application.js
Last active May 2, 2018 19:26
Ember Error Handling
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Basic Error Handling',
errorsArray: Ember.A([]),
displayError(error) {
this.get('errorsArray').pushObject({
message: error
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@phillipkregg
phillipkregg / controllers.application.js
Created April 5, 2018 15:39
Call Route from Controller - Refresh Model
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
newFood: '',
actions: {
testing() {
this.send('testingRoute', this.get('newFood'));
}
import Ember from 'ember';
export default Ember.Component.extend({
tabsArray: [
{ title: 'Home', content: 'home', id: 'home', activeButton: false },
{ title: 'Profile', content: 'profile', id: 'profile', activeButton: false },
{ title: 'Messages', content: 'messages', id: 'messages', activeButton: false },
{ title: 'Settings', content: 'settings', id: 'content', activeButton: true }
]
});
import {
moduleFor,
test
} from 'ember-qunit';
import { run } from '@ember/runloop';
import _ from 'lodash';
import atAGlanceMetrics from '../../mock-data/market-survey/at-a-glance-metrics';
import dataProviderData from '../../mock-data/market-survey/data-provider';
import trendMetrics from '../../mock-data/market-survey/trend-metrics';
import volumeMetrics from '../../mock-data/market-survey/volume-metrics';