I hereby claim:
- I am mikeattara on github.
- I am attara_ (https://keybase.io/attara_) on keybase.
- I have a public key ASDpvS_uT3RY7be7zu5p67ZOrLu9Csbr8Qu05pVySRwjSwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| class Book { | |
| constructor(title, author, description, pages, currentPage = 1){ | |
| this.title = title; | |
| this.author = author; | |
| this.description = description; | |
| this.pages = pages; | |
| this.currentPage = currentPage; | |
| this.read = pages === currentPage; | |
| } | |
| class Person { | |
| constructor(firstName, lastName, age) { | |
| this._firstName = firstName; | |
| this._lastName = lastName; | |
| this._age = age; | |
| } | |
| getName() { | |
| return `${this._firstName} ${this._lastName}`; | |
| } |
| function mostOccurrence(word) { | |
| const letterCount = {}; | |
| let mostOccurredLetter = word.split("")[0]; | |
| word.split("").forEach(letter => { | |
| if (letterCount.hasOwnProperty(letter)) letterCount[letter] += 1; | |
| else letterCount[letter] = 1; | |
| }); | |
| for (let letter in letterCount) { | |
| if (letterCount[letter] > letterCount[mostOccurredLetter]) |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |