Skip to content

Instantly share code, notes, and snippets.

💢
Product Designer 🚀 Storyteller 🏖️

Scott C. Krause neodigm

💢
Product Designer 🚀 Storyteller 🏖️
View GitHub Profile
@neodigm
neodigm / spotify-ad-blocker.js
Last active Jul 11, 2020
Automatically mute the Spotify player when ads are playing and unmute when they are done.
View spotify-ad-blocker.js
// Usage: Save in Chrome Dev Tools > Sources > Snippets
// Run the Snippet once each time you start the Spotify Web Player. Play your jams!
let unify = (function(_d, _q, _t){
let eS = _d.querySelector( _q ), bS = true;
if( eS ){
setInterval(function(){unify.tick();}, _t);
return {
"tick": function(){
if( (_d.title.indexOf("Adv") != -1) || (_d.title.indexOf("Spot") != -1) ){
if( bS ){ eS.click(); bS=false; }
View airport_geo_proximity.js
"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 / dom_remove_all_tabindex_gt_0.js
Last active Jul 9, 2020
JavaScript | Remove ALL positive tabIndex on the entire page | ES5 | A11y Testing
View dom_remove_all_tabindex_gt_0.js
// 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){
View 2013_Abbott_ADD_MDM_UX_ORACLE_STORED_PRECEDURE.SQL
CREATE OR REPLACE PACKAGE BODY ADD_ORS.ADD_UE AS
--
FUNCTION show_version
RETURN cmxlb.cmx_med_str
AS
addue_version cmxlb.cmx_med_str := 'Version 1.4 (2014-03-13 16:02:00)';
BEGIN
RETURN addue_version;
END;
--
View Vue_Component_with_Composition_API.vue
<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>
View disable_websockets_per_page_instance.js
(function() {
if (window) {
delete window.WebSocket;
if ('WebSocket' in window) {
window.WebSocket = undefined;
}
console.log('WebSocket support disabled');
}
})();
View flash_auto_stock_photos.as
// 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;
@neodigm
neodigm / promiseAll.js
Created May 1, 2020
JavaScript PromiseAll ES5 polyfill | Manage async await requests
View promiseAll.js
var oPromiseAll = (function(){ // Manage async await requests
var oConfig={}, bInit=false, nCnt=0;
return {
"init": function( _config ){
oConfig = _config;
bInit = true;
nCnt=0;
},
"update": function( _token ){
if( bInit && (oConfig.tokens.indexOf( _token ) != -1 ) ){
View keybase.md

Keybase proof

I hereby claim:

  • I am neodigm on github.
  • I am neodigm (https://keybase.io/neodigm) on keybase.
  • I have a public key ASDzn1bBMQ39o2wKC4ZvecfI8YsYBf2lxq2j0JBlXrprawo

To claim this, I am signing this object:

You can’t perform that action at this time.