Skip to content

Instantly share code, notes, and snippets.

@akinuri
akinuri / custom-styles.js
Created March 30, 2023 10:05
Adds custom text styles to Google Docs
let customStyles = {
"code" : {
"title" : "Code",
"style" : {
[DocumentApp.Attribute.FONT_FAMILY] : DocumentApp.FontFamily.CONSOLAS,
[DocumentApp.Attribute.FONT_SIZE] : 11,
[DocumentApp.Attribute.BACKGROUND_COLOR] : "#E8E8E8",
},
},
"comic" : {
@akinuri
akinuri / Action File (converted).aia
Last active September 11, 2016 19:50
Getting Illustrator Menu Command Strings
/version 3
/name [ 6
My Set
]
/isOpen 1
/actionCount 1
/action-1 {
/name [ 12
Fit artboard
]
@akinuri
akinuri / fitAll.jsx
Last active September 8, 2021 03:14
"Fit All in Window" command in Illustrator
function calcRect(rectArray) {
var rect = {
rect : rectArray.join(", "),
topLeft : {
x : rectArray[0],
y : rectArray[1],
},
bottomRight : {
x : rectArray[2],
y : rectArray[3],