This file contains 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
#!/bin/bash | |
tput smcup | |
# Turn user input off | |
stty -echo | |
display() { | |
BUFFER=$( | |
tput clear |
This file contains 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
'use strict'; | |
class HTMLElementPlus extends HTMLElement { | |
static defaultAttributeValue() { | |
/* the name of the attribute is parsed in as a parameter */ | |
return; | |
} | |
static parseAttributeValue(name, value) { |
This file contains 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
// This is just the worst don't use it. | |
function $(...s) { | |
if (s.length === 0) return document.childNodes; | |
// Handle it being used as a template tag | |
const inString = (typeof s[0] === 'string' ? s[0] : String.raw(...s)).trim(); | |
if (inString[0].includes('<')) { | |
return document.createRange().createContextualFragment(inString); | |
} else { |
OlderNewer