The below directive creates a scroll to top icon on the bottom right corner of the page. On click it will smoothly scroll you position back to top. Angular Directive: function ScrollToTop() { return { template: “<a ng-click=’click()’ class=’scroll-to-top-anchor’></a>”, replace: true, scope: true, controller: function($scope) { $scope.click = function() { var startY = currentYPosition(); var stopY …
Month: February 2016
Lets say I give you a print out of Professor Albert Einstein’s Wikipedia page and tell you that I am going to ask you questions from that text. You will have enough time to read through the document and find the answers that I am looking for. Assuming you are good at finding answers, here is …
What is Base64? Base64 is a generic term for a number of similar encoding schemes that encode binary data by treating it numerically and translating it into a base 64 representation. The Base64 term originates from a specific MIME content transfer encoding. Base64 encoding schemes are commonly used when there is a need to encode …
As I stood there watching those drops falling downhill, I could feel how powerful they are, with no beginning, with no end, they are moving like they don’t care about who is watching them. The serenity, the peacefulness in the noise of the fall is something I could give away anything in the world for. 180 away from the …