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
; 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; |
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
#target photoshop | |
var currentDoc = app.activeDocument; | |
for ( var i = 0; i < currentDoc.layers.length; i++ ) { | |
var layer = currentDoc.layers[i]; | |
if( layer.kind === LayerKind.HUESATURATION ) | |
{ | |
layer.visible = layer.visible ? false : true; | |
} |
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
// Install by saving to PHOTOSHOP_DIRECTORY/Presets/Scripts | |
// Also works just by opening it with File->Open.. | |
// Once installed, you can add an action to run it with a keyboard shortcut | |
// Open Actions window (Window->Actions) | |
// Click the "Create a New Action" Button (dog-eared paper icon) | |
// Choose the name of the action and the shortcut keys you want | |
// Click Record | |
// Select Insert Menu Item... | |
// Select File->Scripts->toggleLayerType |
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
#define STBI_ONLY_PNG | |
#define STB_IMAGE_IMPLEMENTATION | |
#include "stb_image.h" | |
#define STB_IMAGE_WRITE_IMPLEMENTATION | |
#include "stb_image_write.h" | |
#include <stdio.h> | |
typedef union | |
{ |
OlderNewer