function routine(){
var counter = 3;
asyncThing(function(){
// Do stuff
done();
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
jsMQcallback = $.Callbacks(), jsMQcurrent = ""; | |
var jsMQ = { | |
getVW : function(){ | |
vw=jQuery(window).width(); | |
if(vw <= 480) return "s"; | |
if((vw >= 480) && (vw <= 748)) return "sl"; | |
if((vw >= 749) && (vw <= 965)) return "m"; | |
if(vw >= 966) return "l"; | |
}, | |
pubVW : function(){ |
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
<div class="img-container"> | |
<img src="http://cdn3.spiegel.de/images/image-545702-breitwandaufmacher-penw.jpg"> | |
</div> |
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 puppeteer = require('puppeteer'); | |
(async () => { | |
for( var i = 1; i < 501; i++){ | |
var browser = await puppeteer.launch({headless: true, slowMo: 1000}); | |
var page = await browser.newPage(); | |
page.setViewport({width: 980, height: 3200}); | |
await page.goto('https://qqqqqqqqqqq'); | |
await page.screenshot({path: 'ltdc_stage_lsc_'+i+'.png'}); | |
await browser.close(); |
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
/* | |
Optim Book Axios - New Type Ahead | SCK | |
Lakeside prod enter 141893 then execute this snippet | |
*/ | |
$("#branding").append("<link rel='stylesheet' href='https://neodigm.github.io/is-ecom-labs/autocomplete/autocomplete.css' type='text/css' media='all' />"); | |
$("#branding").append("<script src='https://unpkg.com/axios/dist/axios.min.js'></script>"); | |
$("#branding").append("<script src='https://unpkg.com/vue@2.4.2/dist/vue.js'></script>"); |
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 fLazy = (function(doc){ | |
return { "init" : function( _bMobl ){ | |
var _aE = [].slice.call( doc.querySelectorAll( "[data-lz-src]" ) ); | |
_aE.filter( function( _e ){ | |
if( _bMobl ){ // isMobile | |
if( _e.dataset.lzM ){ // data-lz-m | |
_e.src = _e.dataset.lzSrc; | |
} | |
}else{ |
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
// Lightweight ZF Equalizer alternative | |
// Will make two or more HTML elements the same height | |
// Usage: eq2.makeEqual("[data-equalizer-watch='your_pattern']"); | |
var eq2 = { | |
Mx: 0, | |
makeEqual: function( data_eqlzr_watch ){ | |
$( data_eqlzr_watch ).each(function(){ | |
eq2.Mx = ( this.clientHeight > eq2.Mx ) ? this.clientHeight : eq2.Mx; | |
}); | |
$( data_eqlzr_watch ).css("height", eq2.Mx + "px"); |
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:
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
var multiClick = (function( _d ){ // Click lots of stuff | |
return { | |
"all": function( sQuery ){ | |
if( sQuery ){ | |
[].slice.call( _d.querySelectorAll( sQuery ) ) | |
.filter(function( eL ){ eL.click() }) | |
} | |
} | |
} |
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
// Persist Long Tail Key Words from Google SERP | |
var fLong = (function(){ | |
var _aPKW = localStorage.getItem( "gogl_ai_keywords" ); | |
if( _aPKW ){ | |
_aPKW = JSON.parse( _aPKW ); | |
}else{ | |
_aPKW = []; | |
} | |
return { | |
doit : function(){ |
OlderNewer