Skip to content

Instantly share code, notes, and snippets.

@UskeS
UskeS / toggleProofingType.js
Created March 25, 2021 01:54
[InDesign][ExtendScript] Toggle between "Dot Gain 15%" and "Working CMYK" for display proofing settings.
/**
* @fileoverview Toggle between "Dot Gain 15%" and "Working CMYK" for display proofing settings.
* @author @Uske_S
* @version 0.1.0
*/
var actWin = app.activeWindow;
if (actWin.proofingType === ProofingType.CUSTOM) {
actWin.proofingType = ProofingType.WORKING_CMYK;
} else {
@noellabo
noellabo / NumberingArtboards.jsx
Created August 7, 2018 02:34
Illustratorのアートボード名を連番にリネームする(普通に数値があればそれを加算、#付けた数値があればそれを利用)
#target "illustrator"
/*
NumberingArtboards.jsx
Copyright (c) 2018 Takeshi Umeda (noellabo)
Released under the MIT license
http://opensource.org/licenses/mit-license.php
http://noellabo.jp/
ver. 0.1.0
*/
@hirakun
hirakun / Snow 2014
Created December 17, 2014 04:27
Snow 2014 - Make your terminal snow with Perl
perl -e 'binmode STDOUT, 'utf8';use Time::HiRes "sleep";$| = 1;$m="\x{2603}";($y,$x)=split(/ /,`stty size`);print "\033[2J";while(1){push @snows,{y=>1,x=>int(rand($x))};for(@snows){print "\e[".($_->{y}-1).";$_->{x}H \e[$_->{y};$_->{x}H$m\e[1;1H";$_->{y}++;shift(@snows) if $_->{y} > $y}sleep(0.1);}'
@yujiod
yujiod / DefaultKeyBinding.dict
Last active July 3, 2024 08:45
Macの英数入力で円記号とバックスラッシュを入れ替える(ATOKにも対応) ~/Library/KeyBindings/DefaultKeyBinding.dict
{
"¥" = ("insertText:", "\\");
"~\\" = ("insertText:", "¥");
}