Skip to content

Instantly share code, notes, and snippets.

View raphael-brand's full-sized avatar
🏠
Working from home

Raphael raphael-brand

🏠
Working from home
View GitHub Profile
@raphael-brand
raphael-brand / fibonacci.js
Last active April 21, 2017 15:08
Fibonacci
class Fibonacci {
constructor(countUntil) {
this.a = 0;
this.b = 1;
this.c = 1;
this.r = [this.a, this.b];
if(countUntil) {
@raphael-brand
raphael-brand / flex-grid-8x8.md
Last active April 15, 2017 21:12
Flex Grid 8x8
jQuery.extend({
repeat : function(times, callback) {
var t = parseInt(times) | 0, i = 0;
if (t <= 0)
return console.warn('repeat() 1st argument expects unsigned int greater than 0 .');
if (typeof (callback) != 'function')
return console.warn('repeat() 2nd argument expects function');
var x = t;
while (x > i)callback(i++);
}