Skip to content

Instantly share code, notes, and snippets.

View nclsndr's full-sized avatar

Nico André nclsndr

View GitHub Profile
@nclsndr
nclsndr / html_tags.txt
Last active March 23, 2017 18:31
All HTML tag elements
ALL :
a, abbr, acronym, address, applet, area, article, aside, audio, b, base, basefont, bdi, bdo, big, blockquote, body, br, button, canvas, caption, center, cite, code, col, colgroup, data, datalist, dd, del, details, dfn, dialog, dir, div, dl, dt, em, embed, fieldset, figcaption, figure, font, footer, form, frame, frameset, h1, h2, h3, h4, h5, h6, head, header, hr, html, i, iframe, img, input, ins, kbd, keygen, label, legend, li, link, main, map, mark, menu, menuitem, meta, meter, nav, noframes, noscript, object, ol, optgroup, option, output, p, param, picture, pre, progress, q, rp, rt, ruby, s, samp, script, section, select, small, source, span, strike, strong, style, sub, summary, sup, table, tbody, td, textarea, tfoot, th, thead, time, title, tr, track, tt, u, ul, var, video, wbr
DISPLAY ONLY :
a, abbr, acronym, address, applet, area, article, aside, audio, b, bdi, bdo, big, blockquote, body, br, button, canvas, caption, center, cite, code, col, colgroup, data, datalist, dd, del, details, dfn, dialog,
@nclsndr
nclsndr / pickInObject.js
Created December 19, 2017 22:48
Pick in object
/* ------------------------------------------
Pick in object
--------------------------------------------- */
const peek = (...keep) => iter => keep.indexOf(iter) > -1;
const split = c => c.split('.');
const tail = array => {
const [head, ...result] = array; // eslint-disable-line
return result;
};
@nclsndr
nclsndr / DataCollection.js
Created September 3, 2018 14:23
Mongo Document manager
/* ------------------------------------------
DataCollection
--------------------------------------------- */
class DataCollection {
constructor(v) {
this.value = v || []
}
override(v) {
this.value = v.slice(0)
}
@nclsndr
nclsndr / tokens.json
Last active February 9, 2023 15:33
Mapping testing
{
"primitives": {
"$description": "A group of primitive values",
"hexadecimalRed": {
"$type": "hexadecimalColorString",
"$value": "#9B1C0C"
},
"aZeroToOneNumber": {
"$type": "zeroToOneNumber",
"$value": 0.3