There once was a Dev from East Mass.,
who wished to ensure his code could be passed.
Feeling most license types,
weren't worth all the hype
Wrote his own as an iconoclast.
His peers thought him a narcissist,
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 | |
function capture_input(){ | |
export CAPPING=true | |
export SSTTY | |
if [[ "$(stty --save 2>/dev/null)" == "" ]]; then | |
SSTTY="$(stty -g)" #BASH | |
else | |
SSTTY="$(stty --save)" #ZSH | |
fi |
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
/* | |
CodePen Demo: https://codepen.io/ZenAtWork/pen/7a5c5e18834fb0584f310321a8c37456 | |
USAGE | |
Include any standard text inputs you wish to convert to ComboSliders, and set each's class to "slider". ex: | |
<input type="text" id="testSlider" data-step="1" data-max="200" data-min="0" data-unit="%" data-value="10" class="ComboSlider" value="10" /> | |
<input type="text" id="testSlider2" data-step="1" data-max="10" data-min="0" data-unit="px" data-value="5" class="slider" /> | |
...then (recommended onLoad, but knock yourselves out), call the conversion routine provided within the API: | |
window.addEventListener('load', ComboSlider.convertAllComboSliders); |
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
class SingletonDefaultExportInstance { | |
constructor() { | |
this._type = 'SingletonDefaultExportInstance'; | |
} | |
singletonMethod() { | |
return 'singletonMethod'; | |
} | |
static staticMethod() { |
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
/** | |
* @license documentWrite.js 1.0.0 Copyright Nerdy Deeds LLC. | |
* Released under MIT license, nerdy.deeds@done.cheap | |
* This should be inserted into the very TOP of the HEAD element, | |
* to intercept any accidental doc.writes prior to its inclusion. | |
*/ | |
document.write=function(val, d=document){ // Override native document.write behavior | |
if(!val || !d) return void(0); // If we've been given no ouput value or scope, bail out | |
var pars = callee = [...d.querySelectorAll('script')].pop(); // Gather all the <script> tags on page, and grab the last (the callee) | |
while(!/body|head|html/gi.test(pars.tagName)) pars = pars.parentNode; // Iterate the DOM until we hit body, head, or html |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <signal.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> |
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 | |
echo " | |
╔═ auto-execute: curl -sL https://bit.ly/getpowerline | bash ══╗ | |
║ ║ | |
║ ╭─────────────────────────────────────────────────────╮ ║ | |
║ │ BASH PROMPT POWERLINE-STATUS AUTOMATIC INSTALLATION │ ║ | |
║ ╰─────────────────────────────────────────── v.1.0.0 ─╯ ║ | |
║ ║ | |
║ AUTHOR: @JJ (Nerdy Deeds, LLC) CREATED: 06.25.2019 ║ |
Displays a crosshair reticle (along with its corresponding coordinate pair) on screen. Useful for verifying object positioning, cursor position, locating X/Y coordinates of an object for callouts, etc.
Reticle currently has three modes:
A red reticle will be placed such that it's center lies precisely at the on-screen coordiantes specified. That is to say, it will entirely ignore your current scroll position. This is due to the reticle being absolutely-positioned. A fixed position reticle will respect the true coordinates, but will bollocks onClick mode. Thus, if you're so inclined to extend this out, keep that in mind.
NewerOlder