const facade = Object.freeze({
"Example": "inline-block p2",
});
const classing = function(name) {
if (!facade.hasOwnProperty(name)) throw new Error("Unknown classing: " + name);
return facade[name];
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store | |
*.[gtGT][iI][fF] | |
*.[jJ][pP][gG] | |
*.[jJ][pP][eE][gG] | |
*.[hH][eE][iI][cfCF] | |
*.[pP][nN][gG] | |
*.[wW][eE][bB][pP] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pure(like) { | |
var fresh = [] | |
var i = ~~like.length | |
while (i-->0) fresh[i] = like[i] | |
return fresh | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
function report() { | |
$("[data-compute]").each(function() { | |
var element = $(this) | |
element.text(element.css(this.dataset.compute)); | |
}) | |
} | |
report() | |
$(window).resize(report) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function() { | |
var handle = "useColor"; | |
var storage = window.sessionStorage; | |
var href = storage && storage.getItem(handle) || ""; | |
var control = document.getElementById(handle); | |
if (!control) throw new Error("Unused code."); | |
var head = document.head; | |
var link = document.createElement("link"); | |
link.rel = "stylesheet"; | |
control.value = link.href = href; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs") | |
const validator = require("html-validator") | |
const validateFile = (file) => { | |
fs.readFile(file, "utf-8", (err, content) => { | |
if (err) throw err; | |
console.log("Validating:", file); | |
validator({ | |
data: content, | |
format: "text", | |
}, (err, report) => { |
brad frost let's business core values the culture engine com ubuntu design voice and tone special snowflake syndrone carbon design sys unity glue
NewerOlder