Skip to content

Instantly share code, notes, and snippets.

View neodigm's full-sized avatar
πŸ’―
Product Designer ⚑ Interactive Storyteller

Scott C. Krause neodigm

πŸ’―
Product Designer ⚑ Interactive Storyteller
View GitHub Profile
@neodigm
neodigm / promiseAll.js
Last active December 8, 2020 02:13
JavaScript PromiseAll ES5 polyfill | Manage async await requests
// Desc: JavaScript PromiseAll ES5 polyfill | Manage async await requests
// Usage: oPromiseAll.init({ tokens: ["totals","details"], fCB: function(){ oEvoCart.refresh(["items"]); } });
var oPromiseAll = (function(){ // Manage async await requests
var oConfig={}, bInit=false, nCnt=0;
return {
"init": function( _config ){
oConfig = _config;
bInit = true;
nCnt=0;
},
// Automotive Dealership stock photo gallery components (Adobe ActionScript 3.0)
import com.mosesSupposes.fuse.*;
import flash.external.*;
ZigoEngine.simpleSetup(Shortcuts, PennerEasing);
ZigoEngine.EASING = 'easeOutExpo';
ZigoEngine.DURATION = 5;
ZigoEngine.OUTPUT_LEVEL = 9;
(function() {
if (window) {
delete window.WebSocket;
if ('WebSocket' in window) {
window.WebSocket = undefined;
}
console.log('WebSocket support disabled');
}
})();
<template>
<v-fragment>
<ul v-if="items.length > 0">
<li v-for="(item, index) in items" :key="index">{{ item.title }}</li>
</ul>
<button v-on:click="fetchMore">Fetch More</button>
</v-fragment>
</template>
<script>
-- β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ€ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ€ β–ˆβ–ˆβ€
-- β–ˆβ–ˆβ€β€β€β€β€β€β–ˆβ–ˆβ€β€β€β€β–ˆβ–ˆβ€β–ˆβ–ˆβ€
-- β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ€β–ˆβ–ˆβ€ β–ˆβ–ˆβ€β–ˆβ–ˆβ€
-- β€β€β€β€β€β–ˆβ–ˆβ€β–ˆβ–ˆβ€β–„β–„ β–ˆβ–ˆβ€β–ˆβ–ˆβ€
-- β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ€β€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ€β€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ€ Relational ⚑ Transactional
--             ▀▀           
CREATE OR REPLACE PACKAGE BODY ADD_ORS.ADD_UE AS
--
@neodigm
neodigm / dom_remove_all_tabindex_gt_0.js
Last active July 15, 2020 16:01
JavaScript | Remove ALL positive tabIndex on the entire page | ES5 | A11y Testing
// Remove ALL tabIndex on the entire page - Thats a fun thing to do. ES5
// From the entire document remove tabIndex if its value is greater than 0
[].slice.call( document.querySelectorAll("[tabIndex]") ).filter(function(el){ // Neodigm 2020
console.log("-- | " + el.tabIndex );
if( el.tabIndex >= 1 ){
el.tabIndex = "";
}
});
// From the entire document add a tabIndex="0" attrib if an A has no href
[].slice.call( document.querySelectorAll("A") ).filter(function(el){
"use strict";
/*
Created an airport geo-proximity microservice that could answer the questions, like; β€œWhat are the three closest airports to me right now?”.
*/
var system_output = {
"airports": {
"ASE": {
"additionalInfo": null,
"cityName": "ASPEN",
"code": "ASE",
@neodigm
neodigm / music-ad-blocker.js
Last active October 26, 2023 22:30
Automatically mute the Music player when Ads are playing and unmute when they are done (in Chrome).
let spotADify = ( (_d, _q, _t) => {
let eS = _d.querySelector( _q ), bS = true;
if( eS ){ // πŸ–οΈ Play your Jams! 🎢
bS = ( eS.getAttribute("aria-label") == "Mute" );
setInterval( () => {spotADify.tick();}, _t);
return {
"tick": () => {
if((_d.title.indexOf("Adve") != -1) || (_d.title.indexOf("Spoti") != -1)){
if( bS ){ eS.click(); bS=!true; }
}else{
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) { /*ms*/ }
@neodigm
neodigm / unprox.ps1
Created September 2, 2020 13:10
Windows PowerShell Script to turn off proxy server in registry
Set-ExecutionPolicy Unrestricted
## Turn off proxy server in Windows
$reg = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
Set-ItemProperty -Path $reg -Name ProxyEnable -Value 0