Skip to content

Instantly share code, notes, and snippets.

View michalsnik's full-sized avatar

Michał Sajnóg michalsnik

  • Busright
  • Poznań
View GitHub Profile
import Ember from 'ember';
const {
Component,
computed,
inject: { service },
} = Ember;
export default Component.extend({
example: service(),
import Controller from '@ember/controller';
export default Controller.extend({
user: {
fullName: 'Emma Watson',
},
});
@michalsnik
michalsnik / app.js
Created April 20, 2017 14:04
route-lang
import Ember from 'ember';
import loadInitializers from 'ember-load-initializers';
import Resolver from './resolver';
import config from './config/environment';
import RouteAliasResolver from 'ember-route-alias/mixins/route-alias-resolver';
const { Application } = Ember;
Ember.MODEL_FACTORY_INJECTIONS = true;
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=28)}([function(e,t,n){"use strict";function r(e){return"[object Array]"===$.call(e)}function o(e){return"[object ArrayBuffer]"===$.call(e)}function i(e){return"undefined"!=typeof FormData&&e instanceof FormData}function a(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function s(e){return"string"==typeof e}function c(e){return"number"==typeof e}function u(e){return void 0===e}function f(e){return null!==e&&"object"==typeof e}function l(e){return"[obje
alert('asd')
@michalsnik
michalsnik / controllers.application.js
Created July 27, 2017 10:41
nested-dependent-keys
import Ember from 'ember';
const { Controller, get, set, computed } = Ember;
export default Controller.extend({
appName: 'Ember Twiddle',
lorem: {
ipsum: {
asd: 0,
qwe: 0,
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.AOS=t()}(this,function(){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t="Expected a function",n=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt,u="object"==typeof e&&e&&e.Object===Object&&e,f="object"==typeof self&&self&&self.Object===Object&&self,l=u||f||Function("return this")(),d=Object.prototype.toString,m=Math.max,p=Math.min,b=function(){return l.Date.now()};function v(e,n,o){var i,r,a,c,s,u,f=0,l=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError(t);function y(t){var n=i,o=r;return i=r=void 0,f=t,c=e.apply(o,n)}function h(e){var t=e-u;return void 0===u||t>=n||t<0||d&&e-f>=a}function k(){var e=b();if(h(e))return x(e);s=setTimeout(k,function(e){var t=n-(e-u);return d?p(t,a-(e-f)):t}(e))}function x(e){return s=void 0,v&&i?y(e):(i=r=void
<div class="item" data-aos="fade-up">1</div>
<div class="item" data-aos="fade-down">2</div>
<div class="item" data-aos="zoom-out-down">3</div>
<div class="item" data-aos="flip-down">4</div>
<div class="item" data-aos="flip-up">5</div>
<div class="item" data-aos="fade-down">6</div>
<div class="item" data-aos="fade-in">7</div>
<div class="item" data-aos="fade-down">8</div>
<div class="item" data-aos="fade-in">9</div>
<div class="item" data-aos="fade-down">10</div>
### Keybase proof
I hereby claim:
* I am michalsnik on github.
* I am michalsnik (https://keybase.io/michalsnik) on keybase.
* I have a public key ASCbwzS3qjy-bu_ginOUBcfh3GX-TtttrPJV0ss7mrfDsgo
To claim this, I am signing this object:
<div class="base-item">
<header class="base-item__header">
<img src="..." class="base-item__img">
<div class="base-item__header-content">
<h3 class="base-item__title">Rick Sanchez</h3>
<span class="base-item__subtitle">Human from Earth (C-137)</span>
</div>
</header>
</div>