Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
God of great ideas that you forgot to write down and will never remember again.

Damian Senn topaxi

🐧
God of great ideas that you forgot to write down and will never remember again.
View GitHub Profile
View gist:90af787e824b6c15863491b80ebac03b
{
"cd35a2426062b7d58fd4a63f813cc506ef87e449087d28d256b8c393f20fa364": 45,
"0889113e04d3203f0c401c17c0fd8b352b740dc607433779d3edcaa13320b001": 92,
"ac1d58c602672a3d5a621ab462a63289b7a4fdbc415cbb16708d6266ccf3f050": 1,
"3441b5696d6abf2bd959d18bcb31dde8239a6ad8185bfa659af60bc764c238a8": 26,
"3fb45623cb3075a8af9a2f81ef3beaa4038541cd71f08e4bf6c79c088f7a4026": 4,
"33d49d5ece84b84ac983711fa911b3b47f3117c5cde5e3c1f8addfa4a8256d2f": 1,
"4dc501d66cd78903b81b1a53459d0432939728c537bbe9ffab55ab81521cb352": 25,
"33112ee14ee469c3eb52fe90322ec81dd404a0093d565a6d71ce77cbc8124e3b": 7,
"8aee8d5cc241afdba6c5799ca2e4cac7ad45078484582743db96fedf0b92dfaf": 1,
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
disabled: false
});
@topaxi
topaxi / adapters.application.js
Created Mar 25, 2017
Ember Data Included Issues
View adapters.application.js
import DS from 'ember-data';
export default DS.JSONAPIAdapter.extend({
namespace: 'api',
coalesceFindRequests: false
});
@topaxi
topaxi / responsive-font-size.sass
Created Sep 6, 2016
Responsive CSS font-size in SASS
View responsive-font-size.sass
@mixin responsive-font-size($min-size, $max-size, $min-break, $max-break) {
font-size: calc(
#{$min-size} + #{strip-units($max-size - $min-size)} *
((100vw - #{$min-break}) / #{strip-units($max-break - $min-break)})
);
@media screen and (max-width: $min-break) {
& {
font-size: $min-size;
}
@topaxi
topaxi / application.controller.js
Last active Jan 20, 2016
Contextual Component Error
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
bar: 'baz',
actions: {
changeBar() {
this.set('bar', `foobarbaz ${Math.random()} !`)
}
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
});