Skip to content

Instantly share code, notes, and snippets.

View kenigbolo's full-sized avatar
🎯
Focusing

Kenigbolo Meya Stephen kenigbolo

🎯
Focusing
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kenigbolo
kenigbolo / index.js
Last active January 6, 2019 09:48
Simple Stack and Set DataStructures - Example for CodeAfrique Students
class Stack {
constructor() {
this.stack = [];
}
push(item) {
this.stack.unshift(item);
}
pop() {
background: linear-gradient(335deg, #59f7ce, #2fc9ec, #2fd1ec, #2fb8ec);
background-size: 800% 800%;
-webkit-animation: AnimationName 0s ease infinite;
-moz-animation: AnimationName 0s ease infinite;
-o-animation: AnimationName 0s ease infinite;
animation: AnimationName 0s ease infinite;
@-webkit-keyframes AnimationName {
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}