A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$
if your browser aliases it:
~ 108 byte version
# $folderPath = "C:\temp\" | |
Write-Host "Running!" | |
$file_count = 32963#[System.IO.Directory]::GetFiles($folderPath, "*.pdf", 1).Count # this should remain pretty constant | |
$file_count_R = [System.IO.Directory]::GetFiles($folderPath, "*R_*.pdf", 1).Count | |
Write-Host "Total Files: ":$file_count | |
Write-Host "Progressed Files: ":$file_count_R |
for (int i = 0; i < insertDataTables.Count(); i++) | |
{ | |
List<(CurrencyIsoCode currency, bool useZero)> currencies = new List<(CurrencyIsoCode, bool)>{ | |
(CurrencyIsoCode.EUR,true), | |
(CurrencyIsoCode.USD,true), | |
(CurrencyIsoCode.CAD,true), | |
(CurrencyIsoCode.MXN,true), | |
(CurrencyIsoCode.BRL,true), | |
(CurrencyIsoCode.COP,true), | |
}; |
Here is just one simple way of controlling a loading overlay element. In this case "app" could be a higher level component that implements "loadingbar". | |
The "app" component references the loading bar using `this.$refs` which is more of a global reference for app. There are various other methods by passing down "props" to the child component, emitting an "event" that the child listens to, etc. | |
<!-- begin snippet: js hide: false console: true babel: false --> | |
<!-- language: lang-html --> | |
<html> | |
<head> | |
<title>Loading Bar</title> |
DELETE FROM VCINTER.ATSDATA FF | |
WHERE EXISTS( | |
SELECT 1 FROM ( SELECT * FROM ( | |
SELECT | |
ROW_NUMBER() OVER(PARTITION BY UPPER(C.PKOLD)) AS RN1, UPPER(C.PKOLD) as PKOLD2,E.PKOLDCNT, D.*,C.* | |
FROM VCINTER.ATSDATA C | |
LEFT JOIN ( | |
SELECT | |
COUNT(RN) as CNT,PARPKEY | |
FROM (SELECT ROW_NUMBER() OVER(PARTITION BY PARPKEY) as RN, A.* FROM VCINTER.ATSDETAILS A) B |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script> | |
<div id="app"> | |
</div> | |
<script> | |
new Vue({ | |
el:"#app", | |
template:` | |
<div class="row"> |
Get-ChildItem -LiteralPath .\ -Recurse | Where-Object { | |
$_ -is [System.IO.FileInfo] ` | |
-and (($_.Directory.Name -eq 'Single' ` | |
-and $_.Length -gt (1*1024*1204)) ` | |
-or ($_.Directory.Name -eq 'Multiple' ` | |
-and $_.Length -gt (5*1024*1204))) | |
} | ForEach-Object { | |
$command = '"E:\Program Files (x86)\PDFtk Server\bin\pdftk.exe" "'+$_.FullName+'" dump_data | findstr NumberOfPages' | |
$output = iex "& $command" | |
$pages = $output.Substring(15,$output.length-15) |
<template> | |
<select> | |
<slot></slot> | |
</select> | |
</template> | |
<script> | |
export default { | |
name:'Select2', | |
props: { | |
'value':{ |
' Run inside of a .docm file's vba. | |
Option Explicit | |
Const sDir = "C:\temp\PDF\" | |
Const TESTING = False | |
Sub SaveDocAsPdf(wApp As Word.Application, fso As Variant, filePath As String, exportPath As String) | |
Dim wDoc As Word.Document | |
Set wDoc = wApp.Documents.Open(filePath) | |
wDoc.ExportAsFixedFormat OutputFileName:=exportPath, ExportFormat:=wdExportFormatPDF | |
wDoc.Close False |
;with cte (ID, DeclarationItem, Declaration,SEQM) as | |
( | |
select ID, | |
cast(LEFT(CustomText01, 20) as varchar(20)) DeclarationItem, | |
RIGHT(CustomText01, | |
CASE | |
WHEN LEN(CustomText01)-20 > 0 THEN LEN(CustomText01)-20 | |
ELSE 0 | |
END | |
) Declaration, |