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
# 20160601 Scott C. Krause | |
# This PowerShell script will remove files, if they are older than one hour and if the Scheduled task is NOT running, and if the Scheduled task has not updated it log in the past two minutes. | |
Set-ExecutionPolicy Bypass | |
# popu var if compr proc is not busy | |
$recent_logged = Get-Item C:\ltd_auto_image\logs\ltd_auto_image.txt | where-object {(new-timespan $_.LastWriteTime).minutes -ge 16} | |
if ($recent_logged) { | |
# if sched task / compr proc is state running del | |
$ltd_auto_running = Get-ScheduledTask -TaskName ltd_auto_image | Where State -eq "Running" | |
#if ($recent_logged) { |
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
/* | |
This ActionScript package will except a string of port numbers in most | |
likely order (from the configuration XML). | |
For example: 1935, 8080, 80. | |
It will then attempt to connect to each port in sequence | |
every 800 milliseconds. If port 80 is used then the | |
tunneling protocol is returned (rtmpt). | |
*/ | |
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
$.readyList[0](); |
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
<!DOCTYPE html> | |
<head> | |
<title>Demo Dev Tools</title> | |
</head> | |
<body> | |
<h1>Demo Dev Tools</h1> | |
<!-- In the Chrome dev tools select the P element > break on > Attrib Modifications | |
--> | |
<p id="js-my-text__id">This is text</p> | |
<a id="js-click-me__id">Click Me</a> |
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
(function( doc, dNow ){ | |
var bOk = false; | |
var urlParams = new URLSearchParams( window.location.search ); | |
if( urlParams.has( "token" ) ){ | |
var sToken = urlParams.get( "token" ); | |
var nDiff = ( dNow.getTime() - Number( sToken ) ) / 1000; | |
if( nDiff >= 3000 || isNaN( nDiff ) ){ | |
bOk = false; | |
}else{ | |
bOk = true; |
OlderNewer