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
// Author : Lokno Ketchup | |
// Description : Takes a stereo image (side-by-side) or | |
// two images for each eye and composes them into an anaglyph image | |
// usage: anaglyph.go [-s,--single <side-by-side>|<left> <right>] <anaglyph.png> [RGB] | |
// | |
// parameters: | |
// -s,--single <side-by-side> - One image file with side-by-side images one for each eye | |
// <left> <right> - Two image files, one for each eye. | |
// <anaglyph.png> - path to write the composite PNG image. | |
// [RGB] - (Optional) How images are distributed between the eyes. |
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
// Author : Lokno Ketchup | |
// Description : Transforms an PNG image to simulate various color deficiencies. | |
// Valid Types : normal, protanopia, protanomaly, deuteranopia, deuteranomaly, | |
// tritanopia, tritanomaly, achromatopsia, achromatomaly | |
// Usage : color_blindness.go <input> <output> <type> | |
// | |
// RGB transform matrices generated by Michael of www.colorjack.com | |
// Which were created using code by Matthew Wickline and the | |
// Human-Computer Interaction Resource Network ( http://hcirn.com/ ) |
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
# Author: Lokno Ketchup | |
# Description : Script to detect the rank and value of a playing card | |
# using OpenCV 2.4.12 template matching. User must provide | |
# a local directory "templates" with cropped PNG files | |
# of each rank and suit, labeled using the keys in | |
# dictionaries 'ranks' and 'suits' below. For example, | |
# the image for the ace rank template will be A.png | |
# | |
# Rotation, distance, and perspective are not accounted for, | |
# so the templates must match roughly what the camera will |
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
# Author : Lokno Ketchup | |
# Description : Encodes/decodes a message using the Rail Fence Cipher | |
# Allows for recursively encoding of a message multiple times. | |
# usage: rails.py [-h] [-d] [-b BLOCKS] input output count [count ...] | |
# Parameters : | |
# [-d,--decode] - decodes if present (defaults to encoding) | |
# [-b BLOCKS, --blocks BLOCKS] - expects encoded message in groupings of the specified size | |
# <input> - file to encode/decode | |
# <output> - file to write output. | |
# count [count ...] - list of rail counts to encode |
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
// https://obsproject.com/forum/resources/obs-shaderfilter.1736/ | |
uniform float vmaxThreshold< | |
string label = "Threshold"; | |
string widget_type = "slider"; | |
float minimum = 0.0; | |
float maximum = 1.0; | |
float step = 0.001; | |
> = 0.2; //<Range(0.0, 1.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
# https://github.com/MrYsLab/telemetrix-esp32 | |
import asyncio | |
import tkinter as tk | |
from telemetrix_aio_esp32 import telemetrix_aio_esp32 | |
DIGITAL_PIN = 2 | |
class App: | |
def __init__(self): |
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 asyncio | |
import websockets | |
import pyfirmata | |
import json | |
import platform | |
major,minor,_ = platform.python_version_tuple() | |
if major != '3': | |
logging.error('ERROR: Python 3 required to run.') | |
sys.exit(-1) |
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
@echo off | |
REM Batch Script: find_java_versions.bat | |
REM Description: Searches for all java.exe executables on the host machine and runs each with the -version flag | |
REM to display the Java version information. | |
REM Set the initial search directory to the root of the C drive (you can change this if needed) | |
set "search_dir=C:\" | |
echo Searching for any Java executables ^(java.exe^) in the %search_dir% directory... |
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
# Executes the contents of the clipboard as Python and returns the result to the clipboard | |
# Uses eval() if single-line and uses compile() and exec() if multi-line | |
# Will attempt to handle a limited number of NameError exceptions | |
# Obvious at your own risk and know what you're doing caveats | |
import pyperclip | |
import traceback | |
import contextlib | |
import sys | |
import re |
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
; AutoHotKey script to add a keyboard shortcut to select a region of the screen, | |
; run OCR on that region, and paste the result in the clipboard. | |
; Set to look for English text, see line 24 | |
; Shortcut default is ctrl+shift+alt+i, see line 20 | |
; Press esc when selecting to close, or right-click system tray icon | |
; Modified script from OP of this forum post: | |
; https://www.autohotkey.com/boards/viewtopic.php?p=314654#p314654 |
NewerOlder