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
import shutil | |
import subprocess | |
import os | |
import tempfile | |
from PIL import Image | |
from pathlib import Path | |
import argparse | |
import re | |
# Requires FFMPEG, and the WebPMux tools from: |
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
$files = Get-Content ".\video_files.txt" | |
foreach ($file in $files) { | |
$name = ( Get-Item $file ).BaseName | |
$dir = ( Get-Item $file ).DirectoryName | |
$output = $dir + "\" + $name + " 1080p h265 crf28 no-audio.mp4" | |
if (Test-Path $output) { | |
Write-Host "Output file already exists: $output" | |
continue | |
} |
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 fontFamilies = {}; | |
var fontFamilyObj = {}; | |
document.querySelectorAll('*').forEach(e => { | |
var cs = window.getComputedStyle(e); | |
let ff = cs.getPropertyValue('font-family'); | |
if (!fontFamilies[ff]) { | |
fontFamilies[ff] = 0; | |
} | |
if (!fontFamilyObj[ff]) { | |
fontFamilyObj[ff] = []; |
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
diff --git a/modules/script_callbacks.py b/modules/script_callbacks.py | |
index 17109732..6a93bd49 100644 | |
--- a/modules/script_callbacks.py | |
+++ b/modules/script_callbacks.py | |
@@ -53,6 +53,21 @@ class CFGDenoiserParams: | |
class CFGDenoisedParams: | |
+ def __init__(self, x, sampling_step, total_sampling_steps, inner_model): | |
+ self.x = x |
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 reportFontFamilies() { | |
var fontFamilies = {}; | |
var skip = [ 'link', 'script', 'style' ]; | |
document.body.querySelectorAll('*').forEach(elem => { | |
if (skip.includes(elem.tagName.toLowerCase())) return; | |
var cs = getComputedStyle(elem); | |
var ff = cs.getPropertyValue('font-family'); | |
if (!fontFamilies[ff]) fontFamilies[ff] = []; | |
fontFamilies[ff].push(elem); | |
}); |
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
<canvas/><script>b=document.all[3].getContext("2d");s=50;z=s*s;m=[];n=[];g=(x,y)=>m[x*s+y%s];for(i=z;--i;m[i]=new Date&1);setInterval(()=>{for(i=z;--i;)x=i/s|0,x=g(x,i-1)+g(x+1,i-1)+g(x+1,i)+g(x+1,i+1)+g(x,i+1)+g(x-1,i+1)+g(x-1,i)+g(x-1,i-1),n[i]=3==x||m[i]&&2==x;for(i=z;--i;)b.fillStyle=(m[i]=n[i])?'red':'tan',b.fillRect(i/s*10,i%s*10,10,10)},s)</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 ShiftDecoder() { | |
var chars = "abcdefghijklmnopqrstuvwxyz".split(""); | |
function iterate(str, shift) { | |
var str2 = ""; | |
for (var i = 0; i < str.length; ++i) { | |
var char = str[i]; | |
var inof = chars.indexOf(char); | |
if (inof == -1) { | |
str2 += char; |