Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Daniel Mascena danielmascena

🎯
Focusing
View GitHub Profile
@danielmascena
danielmascena / setTypeOf.js
Created Aug 19, 2020
A helper script to set checker types easily
View setTypeOf.js
/**
* @file This is a helper script to set checker types easily.
* @copyright Daniel Mascena 2020
* @function setTypeOf
*/
const setTypeOf = function() {
"use strict";
/** @constant
@danielmascena
danielmascena / getWeekDayString.js
Created Aug 5, 2020
A simple helper method to get the days of week
View getWeekDayString.js
(function(Date) {
if (new RegExp(Date.name).test(Object.prototype.toString.call(new Date)) && !Date.prototype.getWeekDayString) {
const WEEKDAYS = ["SUNDAY", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY"];
Date.prototype.getWeekDayString = function() {
return WEEKDAYS[this.getDay()];
};
}
})(globalThis && globalThis.Date || (window && window.Date || global && global.Date));
View gist:8b98b81dd5e179c513c9d89197e844d6
/**
* An immediately-invoked function expression (or IIFE, pronounced "iffy") is a JavaScript programming language idiom
* which produces a lexical scope using JavaScript's function scoping.
*/
// keep things outside the global scope plz
(function (window, document, undefined) {
'use strict';
View dabblet.css
*{box-sizing: border-box;}
body{font-family: Arial, sans-serif;mrgi }
.container {
background: #ccc;
border: 1px solid;
}
.container:after {
content: '';
display: table;
View dabblet.css
*{box-sizing: border-box;}
body{font-family: Arial, sans-serif;}
.container {
background: #ccc;
border: 1px solid;
}
.container:after {
content: '';
display: table;
@danielmascena
danielmascena / dabblet.css
Created Jul 14, 2017 — forked from benfrain/dabblet.css
CSS Flexible Layout Module - flex property
View dabblet.css
/**
* CSS Flexible Layout Module - flex property
*/
* { transition: all 2s; box-sizing: border-box;}
body {
background: #bfbfbf;
}
header,aside,.mainContent,.extraDiv,footer {
padding: 1em;
font-size: 1.4em;
@danielmascena
danielmascena / dabblet.css
Created Jul 14, 2017 — forked from benfrain/dabblet.css
CSS Flexible Layout Module
View dabblet.css
/**
* CSS Flexible Layout Module
*/
body {
background: #bfbfbf;
min-height: 100%;
}
header {
background-color: blue;
min-height: 100px;
@danielmascena
danielmascena / dabblet.css
Created Jul 14, 2017 — forked from benfrain/dabblet.css
CSS Flexible Layout Module - extra div
View dabblet.css
/**
* CSS Flexible Layout Module - extra div
*/
body {
background: #bfbfbf;
min-height: 100%;
}
header {
background-color: blue;
min-height: 100px;
@danielmascena
danielmascena / dabblet.css
Last active Jul 14, 2017 — forked from benfrain/dabblet.css
CSS Flexible Layout Module - flexbox styling
View dabblet.css
/**
* CSS Flexible Layout Module - flexbox styling
*/
* { transition: all 2s; }
body {
background: #bfbfbf;
}
header,aside,.mainContent,.extraDiv,footer {
padding: 1em;
@danielmascena
danielmascena / dabblet.css
Created Jul 14, 2017 — forked from benfrain/dabblet.css
CSS Flexible Layout Module - flex property
View dabblet.css
/**
* CSS Flexible Layout Module - flex property
*/
* { transition: all 2s; box-sizing: border-box;}
body {
background: #bfbfbf;
}
header,aside,.mainContent,.extraDiv,footer {
padding: 1em;
font-size: 1.4em;
You can’t perform that action at this time.