# Header 1 => <h1>Header 1</h1>
## Header 2 => <h2>Header 2</h2>
### Header 3 => <h3>Header 3</h3>
#### Header 4 => <h4>Header 4</h4>
##### Header 5 => <h5>Header 5</h5>
###### Header 6 => <h6>Header 6</h6>
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"; | |
var Shape = function (el, colour) { | |
var color, shape, | |
that = this; | |
shape = el.getAttribute("shape-type") || "square"; | |
change(); | |
this.newColor = function (color) { | |
el.setAttribute("shape-color", color); | |
change(); |
This will download and symlink to a specified nodejs version.
The batch file is dependent on both 7zip and curl, these are automatically downloaded (regardless of if they're already installed).
To install simply download the batch file, and add the NodeJS and nvm 'directories' to the %path% enviromnment variable.
In my case my path became: %path%;%appdata%\nodejs;%appdata%\nvm
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
const cssPath = (function () { | |
function tagUnique(l) { | |
const es = [].filter.call( | |
l.parentElement.children, | |
e => e !== l | |
); | |
return -1 === [] | |
.map.call(es, e => e.tagName) | |
.indexOf(l.tagName); | |
} |
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
function getArgs(func) { | |
/** | |
* Basic function regex | |
* - /^function\s*\w*\(([\w\W]*?)\)\s*{/ | |
* | |
* Arrow function regex | |
* - /^([^()]*)\s*=>/ | |
* - /^\(([\w\W]*?)\)\s*=>/ | |
* */ | |
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
const domMonitor = function (tagname, eventname, options) { | |
tagname = tagname.trim().toLowerCase(); | |
eventname = eventname.trim(); | |
options = options || {}; | |
const property = options.property || 'outline-color'; | |
const propertyFrom = options.property || '#fff'; | |
const propertyTo = options.property || '#000'; | |
const evn = new Event(eventname, { |
- It will create a toggle able transparent box around the element you're hovering over.
- When control is held (with /flamencist/SelectorGenerator included) and an element is clicked a pop-up of the CSS-selector of the element you clicked on will show.
- This hover outline effect can be toggled using scroll lock on your keyboard.
Simply include:
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
const { normalize, join } = require('node:path'); | |
/** | |
* @returns {string} | |
*/ | |
function findExecutingFile() { | |
// This is covered in the 'package-eval' tests. Jest just does not know that... | |
/* istanbul ignore next */ | |
return normalize( | |
// This is present for `type: commonjs` after startup |
OlderNewer