Codility efficient algorithm solutions in JavaScript
This post aim is to provide Codility algorithm solutions in JavaScript as there are so many of them available out there. I am not pretending to have the best algorithm possible but at least the following answers scored 100% on Codility test result.
I created this article to prepare for Toptal interview process . If you wish to apply to Toptal , here is a referral link that will link your account to mine if you are successful!
Introduction to Webpack with practical examples
Creating an hybrid app in minutes with Ionic Framework
AngularJS memory stats
AngularJs 1.x Open Source projects to follow in 2015
D3.js Responsive Word Cloud
AngularJs, Browserify Polymer and Sass boilerplate
Source available on Github : https://github.com/shprink/angularjs-browserify-polymer-boilerplate
Two way data biding
Using Polymer and AngularJs at the same time is a bit problematic. The two way data biding (AngularJs feature) cannot natively work with Polimer web components. Some project are emerging though:
Those projects are not mature enought to use, so I decided to directly use AngularJs's resources within Polymer elements.
Using AngularJs's services within Polymer
var userService = angular.injector(['boilerplate']).get('UserService');
Polymer('user-list', {
ready: function() {
this.list = userService.getList();
},
tapAction: function(e) {
console.log('tap', e);
}
});Using AngularJs's scope within Polymer
Polymer('boilerplate-login', {
ready: function() {
this.angularScope = angular.element(this).scope();
},
sendForm: function(){
this.angularScope.goToHome();
}
});