Skip to content

Instantly share code, notes, and snippets.

View Zatvobor's full-sized avatar

Alexey Zatvobor

  • Software engineer
  • CET
View GitHub Profile
@Zatvobor
Zatvobor / app.js
Last active August 29, 2015 14:16
Ember-Insights.js: Task Success metrics
// The Example App is abstract implementation as a show case of getting the 'Task Success' metric.
// The Task Success: this includes traditional behavioral metrics of user experience,
// such as efficiency (e.g. time to complete a task), effectiveness (e.g. percent of tasks completed), and error rate.
// This category is most applicable to areas of your product that are very task-focused, such as search or an upload flow.
App = Ember.Application.create({rootElement: applicationContainer});
App.Router.map(function() {
this.resource('index', { path: '/' });
this.resource('execution', { path: '/execution' });
this.resource('result', { path: '/result' });
@Zatvobor
Zatvobor / gist:a10851906923e60b8a05
Created February 20, 2015 15:07
Ability to use Multiple Trackers for tracking the same users behavior
EmberInsights.configure('development')
.track({
trackerFactory: EmberInsights.ATracker.factory,
insights: EmberInsightsMapping.development.insights,
})
.track({
trackerFactory: EmberInsights.BTracker.factory,
insights: EmberInsightsMapping.development.insights,
});
function Human (sex, age, name) {
this.sex = sex;
this.age = age;
this.name = name;
}
Human.prototype.say = function() {
console.log('my name is ' + this.name);
};
@Zatvobor
Zatvobor / gist:10106907
Last active August 29, 2015 13:58
Ember.js inception case

The purpose: Check the understanding of core principles

In general: Prioritized TODO lists

In order to prioritize my own activities and manage my personal best. I want to have ability to submit tasks into MUST, SHOULD and COULD queues.

Acceptance criteria, application should:

  • be available from plain index.html and should not have any jQuery based snippets;
  • use DS.FixtureAdapter;
/opt/roundscope/roscredit-app   rc  curl -v -u [FILTERED]:[FILTERED] "https://www.kp-dealer.ru:8080/KPDealerWeb/KPBossHttpServer?actionName=PROVIDERS2" | grep "<provider>" | wc -l
* About to connect() to www.kp-dealer.ru port 8080 (#0)
* Trying 31.13.17.134...
* Adding handle: conn: 0x7fc8f2805400
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fc8f2805400) send_pipe: 1, recv_pipe: 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed