Skip to content

Instantly share code, notes, and snippets.

View attaradev's full-sized avatar
👊
Focused

Mike Attara attaradev

👊
Focused
View GitHub Profile

Keybase proof

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:

@attaradev
attaradev / RESUME.md
Last active December 3, 2019 11:59
My Resume in Markdown

Mike Perry Yeboah Attara

Software Engineer

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}`;
}
@attaradev
attaradev / mostOccurrence.js
Last active January 26, 2019 09:04
most-occurrence
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 -->
@attaradev
attaradev / rAF.js
Created August 26, 2018 11:57 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
// 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'];