View Spot inks to process.jsx
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
// DESCRIPTION: Sets existing spot color inks to print as process. | |
// Does not affect spot inks added after the script is ran, so rerun if necessary. | |
// Jorge Hernández Valiñani | |
#target indesign | |
(function () { | |
var myInks = app.activeDocument.inks; | |
for (var i = 0; i < myInks.length; i++) { | |
if (myInks[i].isProcessInk == false) { |
View Reindex.tool
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
#!/bin/bash | |
# Batch-add an empty file and Finder comment to a list of directories | |
# as a way of matching them to a catalog id. | |
# | |
# Takes a 2-column semicolon-separated CSV file. First column is a | |
# directory; second column is a catalog index or id. Creates an empty | |
# txt file whose filename is the catalog index in the 2nd column inside | |
# the directory in the 1st column. Also writes the catalog index in the | |
# 2nd column as a Finder comment (overwriting any existing one) of the |
View DumpCD.tool
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
#!/usr/bin/env bash | |
# Dump contents of optical media upon inserting, then eject and repeat. | |
# | |
# Requires macOS. | |
# | |
# If ran without the appropriate env variables, it will ask for: | |
# * destination | |
# * order no. to be recorded for the first media being copied. The orden no. | |
# of each copy which will be logged into a CSV file created in _destination_ |
View center-images.xhtml
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="UTF-8"/> | |
<title>Centering images in ebooks</title> | |
<!-- <link rel="stylesheet" type="text/css" href="style.css"/> --> | |
<style type="text/css"> | |
.center-image { |
View after-toc.ncx
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ncx version="2005-1" xmlns="http://www.daisy.org/z3986/2005/ncx/"> | |
<head> | |
<meta name="dtb:uid" content="urn:uuid:e04c4d19-57af-4495-a8c8-882695b7c8dc" /> | |
</head> | |
<docTitle> | |
<text/> | |
</docTitle> | |
<navMap> | |
<navPoint id="title_page"> |
View drae22.js
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
javascript:void(q=window.getSelection?window.getSelection():(document.getSelection?document.getSelection():(document.selection?document.selection.createRange().text:'')));if(q=='')void(q=prompt('Introduce%20una%20palabra%20para%20buscarla%20en%20el%20DRAE:',''));if(q)%7Bvoid(window.open('http://drae22.rae.es/'+encodeURIComponent(q)));%7D; |
View palette.sh
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
#!/bin/bash | |
# Creates an image with a palete of swatches of the most common colors in an | |
# image, and their hexadecimal code, ordered by higher frequency from left to | |
# right. | |
# | |
# Requires Imagemagick. | |
# | |
# Author: Jorge Hernández Valiñani |
View selectAllTumblrPosts.js
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
var my_array = document.querySelectorAll('[id^=post_]'); | |
var i; | |
for (i = 0; i < Math.min(my_array.length, 100); i += 1) { | |
my_array[i].click(); | |
} |
View cover.xhtml
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="UTF-8"/> | |
<title> </title> | |
<style type="text/css"> | |
html, body { | |
height: 100%; | |
width: 100%; |
NewerOlder