A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$
if your browser aliases it:
~ 108 byte version
/** | |
* How to automatically vote on VoicePolls -__- #ScriptKiddieLevel | |
* | |
* Guys, you should really check — at least — for IPs and — at least — put a rate-limit on API calls. | |
* | |
* Usage : | |
* $ npm install async request | |
* $ node vote.js | |
*/ |
function toBeProfiled(){ | |
console.log(new Error('Show me the stack!')); | |
//Do something here | |
} | |
function launchApp(){ | |
function doThing(){ | |
console.debug(toBeProfiled); | |
toBeProfiled(); |
// IMPORT ONCE | |
// Prevent styles from being loaded multiple times for components that rely on other components. | |
$modules: () !default; | |
@mixin exports($name) { | |
$module_index: index($modules, $name); | |
@if not index($modules, $name) { | |
$modules: append($modules, $name) !global; | |
@content; | |
} | |
} |