Skip to content

Instantly share code, notes, and snippets.

View ketchums's full-sized avatar
:octocat:
Working

Ash Ketchum ketchums

:octocat:
Working
View GitHub Profile
@ketchums
ketchums / you.gif
Created October 18, 2020 16:55 — forked from ovflowd/you.gif
you up
you.gif
@ketchums
ketchums / give.gif
Created October 18, 2020 16:55 — forked from mathdroid/give.gif
Give
give.gif
@ketchums
ketchums / gonna.gif
Created October 18, 2020 16:54 — forked from mathdroid/gonna.gif
Gonna
gonna.gif
@ketchums
ketchums / never.gif
Created October 18, 2020 16:54 — forked from mathdroid/never.gif
Never
never.gif
const showInitialTabs = function() {
const initialTabs = document.querySelectorAll('div.tabs > ul > li.is-active');
for (let i = 0; i < initialTabs.length; i++) {
const tabContentId = initialTabs[i].getAttribute('data-content');
document.getElementById(tabContentId).style.display = 'block';
}
}
const clearActiveTabs = function(tabs) {
daysOfMonths = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
def is_leap_year(year):
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
def get_days_from_year(year):
days = year * 365
i = 0
while i < year:
function Validator(ruleSet) {
const errors = [];
const rules = {
required(element) {
if (element.value.length <= 0) {
errors.push(`${element.getAttribute("name")} is required.`);
}
},
}
const API = {

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a