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 : Jonathan Decker | |
# 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
// JSON of 3x3 matrices which transform RGB colors into colorspace which | |
// simulate the imparement of various color blindness deficiency. | |
// | |
// Used by Coblis: http://www.color-blindness.com/Coblis-color-blindness-simulator/ | |
// | |
// The original website posting the matrices has been taken down: | |
// http://www.colorjack.com/labs/colormatrix/ | |
// | |
// RGB transform matrices generated by Michael of www.colorjack.com | |
// Which were created using code by Matthew Wickline and the |
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 : Jonathan Decker | |
// 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 : Jonathan Decker | |
// 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
; Pause : ctrl+a, ctrl+c , delete prefix, ctrl+v | |
; Home : delete the prefix | |
; Esc : close the running script | |
prefixLength := 8 | |
codeLength := 30 | |
remainder := codeLength-prefixLength | |
TrimBarCode() | |
{ |
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
; Captures all digits keys and pastes the last 22-digits of every 30-digit number typed | |
; Replaces clipboard with result | |
; Press the 'pause' key to suspend the script. Press it again to resume. | |
; Press home to reset state | |
numstr = | |
count := 0 | |
prefixLength := 8 | |
codeLength := 30 | |
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
; Adds shortcuts to increment/decrement a selected number in a body of text | |
; Use Shift + Mouse Wheel | |
AddSelection( sign ) | |
{ | |
Send ^c | |
if( RegExMatch( clipboard, "^-?[0-9.]+$" ) ) ; is number | |
{ | |
; determine smallest increment | |
dotPos := InStr( clipboard, "." ) |
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
; Enables ctrl+c and ctrl+v for command line terminals | |
; Escape is used in the place of the ctrl+c interrupt | |
$^c:: | |
if WinActive("ahk_class ConsoleWindowClass") or WinActive("ahk_class PuTTY") | |
{ | |
SendInput {Enter} | |
} | |
else | |
{ |
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
; Deactivates a direct delete key press | |
; Shift + Delete required to send delete | |
^Del::Send Del | |
Del::return |
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
// enable double clicking | |
#target photoshop | |
// make Photoshop the frontmost application | |
app.bringToFront(); | |
// all the strings that need localized | |
var strHistoryStepName = localize("$$$/JavaScripts/Recolor/Menu=Recolor" ); | |
var doc = app.activeDocument; |
OlderNewer