Skip to content

Instantly share code, notes, and snippets.

@akatov
akatov / _README
Last active October 13, 2023 18:04
Another Hoot Experiment
testing out how images get processed by hoot
@akatov
akatov / Hoot Experiments
Last active August 17, 2023 15:56
Hoot Experiments
https://akatov.git.ht

Keybase proof

I hereby claim:

  • I am akatov on github.
  • I am akatov (https://keybase.io/akatov) on keybase.
  • I have a public key ASASKu9xy81kwgSg8Szw5UCsDpQ0cW6lCnoDsFJblOnDbgo

To claim this, I am signing this object:

@akatov
akatov / controllers.cancellation.js
Created October 24, 2017 09:15
ember-concurrency experiments
import Ember from 'ember';
import { task, timeout } from 'ember-concurrency';
const WAIT_HERE_FOREVER = Ember.RSVP.defer().promise;
export default Ember.Controller.extend({
count: 0,
mostRecent: null,
myTask: task(function * () {
try {
import Ember from 'ember';
const { A, Controller, isBlank } = Ember;
export default Controller.extend({
people: [
{ name: 'María', surname: 'Murray' },
{ name: 'Søren', surname: 'Williams' },
{ name: 'João', surname: 'Jin' },
{ name: 'Miguel', surname: 'Camba' },
import Ember from 'ember';
const elFn = el => el.a + ', ' + el.b;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
list: [{a: 1, b: 0}, {a: 2, b:6}],
dummyComputed: Ember.computed('list', function() {
@akatov
akatov / README.md
Last active August 27, 2017 16:38
ember-stateful demo
@akatov
akatov / controllers.application.js
Created August 3, 2017 14:03
experiment-computed-properties
import Ember from 'ember';
const { computed } = Ember;
let x = 0;
export default Ember.Controller.extend({
// x: computed(() => (Ember.Object.create({ a: [], b: []}))),
x: computed(() => ({ a: [], b: []})),
y: 'hi',
hello: computed('y', 'x.a.[]', 'x.b.[]', function() {
@akatov
akatov / adapters.application.js
Last active June 5, 2017 02:14
Ember Pouch Experiments
import { Adapter } from 'ember-pouch';
import service from 'ember-service/inject';
import { wrap } from 'ember-co';
export default Adapter.extend({
unloadedDocumentChanged: wrap(function*(obj) {
const store = get(this, 'store');
const type = store.modelFor(obj.type);
@akatov
akatov / controllers.application.js
Last active June 1, 2017 00:21
Ember Tachyons Experiment
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});