Skip to content

Instantly share code, notes, and snippets.

View Osmiogrzesznik's full-sized avatar

SourceCowD Osmiogrzesznik

View GitHub Profile
precision mediump float;
//precision lowp float;
uniform sampler2D tex;
uniform sampler2D tex2;
uniform sampler2D tex3;
uniform float texWidth;
uniform float texHeight;
// uniform float iTime;
uniform vec3 keyColor;
javascript:void%20function(){function%20a(a,b=1){let%20c=a;for(let%20d=0;d%3Cb;d++)c=c.parentElement;return%20c}function%20b(a,b){let%20c=document.createElement(b);return%20a.append(c),c}function%20c(a,b){const%20c=a.split(%22;%22).map(a=%3Ea.split(%22:%22));console.log(c);const%20d=a.split(%22;%22).map(a=%3Ea.split(%22:%22)).reduce((a,b)=%3E{let[c,d]=b;return%20c=c.replace(/-./g,a=%3Ea.toUpperCase()[1]),a[c]=d,a},{});for(var%20e%20in%20d)b.style[e]=d[e]}function%20d(a){let%20b=f(a,{inspect:a=%3E![%22STYLE%22,%22SCRIPT%22].includes(a.nodeName),collect(a){let%20b=a.nodeType===Node.TEXT_NODE;return%20b%26%26l.push(a.nodeValue),b%26%26k.push(e(a)),b}});return%20b}function%20e(a){o.selectNodeContents(a);var%20b=o.getClientRects();if(0%3Cb.length)return%20b[0]}function%20f(a,b){b=b||{};const%20c=b.inspect||(a=%3E!0),d=b.collect||(a=%3E!0),e=document.createTreeWalker(a,NodeFilter.SHOW_ALL,{acceptNode:function(a){return%20c(a)%3Fd(a)%3FNodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP:NodeFilter.FILTER_REJECT}}),f=[];
javascript:void%20function(){function%20b(b,c){var%20d=Math.floor,e=Math.ceil;return%20b=e(b),c=d(c),d(Math.random()*(c-b+1))+b}async%20function%20c(b){say(%22ftextnodes%22,b),3==b.nodeType%3Fawait%20e(b):0,a=af(b);!(b.offsetHeight*b.offsetWidth)||4e3%3Ctns.length||(a.length%3Fb.offsetWidth%3C.7*k.offsetWidth%3Fg.push(b):0:g.push(b),a.length%3Fa.flatMap(c):0)}async%20function%20e(b){if(b.nodeValue.trim().length%26%26b.textContent.trim().length)if(words=b.nodeValue.trim().split(%22%20%22),2%3Ewords.length){var%20c=document.createElement(%22span%22);c.innerHTML=b.textContent,b.parentNode.insertBefore(c,b),b.parentNode.removeChild(b),g.push(c)}else%20words.forEach(c=%3E{var%20d=document.createElement(%22span%22);d.innerHTML=c+%22%20%22,b.parentNode.insertBefore(d,b),g.push(d)}),b.parentNode.removeChild(b)}async%20function%20f(){m=!0,k=document.body,say(%22d%22,k);let%20b=await%20c(k);styles=`%20%20%20%20.leaff{border:1px%20solid%20redlposition:relative;left:0;top:0;transition-duration:5s;transition-timing-functi
@Osmiogrzesznik
Osmiogrzesznik / VBBC- Video Batch Blender Converter Operator.py
Last active March 4, 2023 17:21
Very Big Batch Converter (why not to make Blender a video converter :) since it handles color space better out of the box, why even bother ? Try to shoot some videos with flat color profile and watch in dismay as most of smart software around by default crumbles it to dust , obliterating dark details. Had to do this having 148 videos and after 5…
'''Very Big Batch Converter (why not to make Blender a video converter :) since it handles color space better out of the box,
OK, but why even bother ? Try to shoot some videos with flat color profile and watch in dismay as most of smart software
around by default crumbles it to dust , obliterating dark details. Had to do this having 148 videos and after 5hours
of testing every single possible codec and a system renderer setting combination in VLC, ffmpeg etc. '''
# author:
# Conglomerate Mind Finding its temporary manifestation in form of SourceCowD,
# meaning i don't remember all my furious copy-pastes and countless google searches,
@Osmiogrzesznik
Osmiogrzesznik / index.html
Last active December 16, 2022 14:29
ai manga fake prank
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>webovr modular</title>
</head>
@Osmiogrzesznik
Osmiogrzesznik / wind letters
Created November 7, 2022 13:39
replaces text nodes with spans
d = document.body;
r = n => ((1 - Math.random() * n)).toFixed(2);
mx = 100;
mxwh = 1000;
transfact = 2000;
rotfact = 10000;
anl = 1;
persp = 400;
var style = document.createElement('style');
style.type = 'text/css';
// I2C device class (I2Cdev) demonstration Arduino sketch for MPU6050 class using DMP (MotionApps v2.0)
// 6/21/2012 by Jeff Rowberg <jeff@rowberg.net>
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
//
// Changelog:
// 2013-05-08 - added seamless Fastwire support
// - added note about gyro calibration
// 2012-06-21 - added note about Arduino 1.0.1 + Leonardo compatibility error
// 2012-06-20 - improved FIFO overflow handling and simplified read process
// 2012-06-19 - completely rearranged DMP initialization code and simplification
@Osmiogrzesznik
Osmiogrzesznik / ToggleTouchScreen.ps1
Created April 8, 2022 18:19
toggles the touch screen
# To allow script to be executed on double click
# https://stackoverflow.com/a/30644946/1366368
# To sign script
# https://adamtheautomator.com/how-to-sign-powershell-script/
# To automatically elevate script to admin privs, I used this code fromn https://superuser.com/a/532109/222708
param([switch]$Elevated)
function Test-Admin {
$currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())
from xml.sax.handler import property_declaration_handler
import mathutils
import bpy_extras
import bpy
from lottie import NVector
import lottie
import os
import sys
import math
from dataclasses import dataclass