Skip to content

Instantly share code, notes, and snippets.

Avatar
💪
Getting after it

Ayooluwa ayoisaiah

💪
Getting after it
View GitHub Profile
View gist:f3e43b496019c5866e6e2c1064b403fb
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAPNRAAEAAAABFsxYWVogAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z2Rlc2MAAAAAAAAAFklFQyBodHRwOi8vd3d3LmllYy5jaAAAAAAAAAAAAAAAFklFQyBodHRwOi8vd3d3LmllYy5jaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkZXNjA
@ayoisaiah
ayoisaiah / main_test.go
Created Oct 8, 2020
Benchmarking two unique ways to get a filename without the extension in Go
View main_test.go
package main
import (
"testing"
)
var res string
func BenchmarkFileNameWithoutExtSliceNotation(b *testing.B) {
// run the Fib function b.N times
@ayoisaiah
ayoisaiah / main.js
Last active Aug 3, 2020
Pomodoro tutorial - Checkpoint 8
View main.js
const timer = {
pomodoro: 25,
shortBreak: 5,
longBreak: 15,
longBreakInterval: 4,
sessions: 0,
};
let interval;
@ayoisaiah
ayoisaiah / main.js
Created Aug 3, 2020
Pomodoro Tutorial — Checkpoint 7
View main.js
const timer = {
pomodoro: 25,
shortBreak: 5,
longBreak: 15,
longBreakInterval: 4,
sessions: 0,
};
let interval;
@ayoisaiah
ayoisaiah / main.js
Created Aug 3, 2020
Pomodoro Tutorial — Checkpoint 6
View main.js
const timer = {
pomodoro: 25,
shortBreak: 5,
longBreak: 15,
longBreakInterval: 4,
sessions: 0,
};
let interval;
@ayoisaiah
ayoisaiah / main.js
Created Aug 3, 2020
Pomodoro Tutorial — Checkpoint 5
View main.js
const timer = {
pomodoro: 25,
shortBreak: 5,
longBreak: 15,
longBreakInterval: 4,
sessions: 0,
};
let interval;
@ayoisaiah
ayoisaiah / main.js
Last active Aug 3, 2020
Pomodoro Tutorial — Checkpoint 4
View main.js
const timer = {
pomodoro: 25,
shortBreak: 5,
longBreak: 15,
longBreakInterval: 4,
sessions: 0,
};
let interval;
@ayoisaiah
ayoisaiah / main.js
Last active Aug 3, 2020
Pomodoro Tutorial — Checkpoint 3
View main.js
const timer = {
pomodoro: 25,
shortBreak: 5,
longBreak: 15,
longBreakInterval: 4,
};
let interval;
const mainButton = document.getElementById('js-btn');
@ayoisaiah
ayoisaiah / main.js
Created Aug 3, 2020
Pomodoro Tutorial — Checkpoint 2
View main.js
const timer = {
pomodoro: 25,
shortBreak: 5,
longBreak: 15,
longBreakInterval: 4,
};
let interval;
const mainButton = document.getElementById('js-btn');
@ayoisaiah
ayoisaiah / main.js
Last active Aug 3, 2020
Pomodoro Tutorial — Checkpoint 1
View main.js
const timer = {
pomodoro: 25,
shortBreak: 5,
longBreak: 15,
longBreakInterval: 4,
};
const modeButtons = document.querySelector('#js-mode-buttons');
modeButtons.addEventListener('click', handleMode);
You can’t perform that action at this time.