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
// BalanceDiagonal.jsx | |
// 2017 Todd Linkner | |
// License: none (public domain) | |
// v1.0 | |
// | |
// This script is for Illustrator CC. It resizes objects to have the same diagonal dimension. | |
// | |
// Install to /Applications/Adobe Illustrator CC/en_US/Scripts/Mobile | |
// bring Illustrator into focus |
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 | |
brew install zint | |
# EAN | |
zint --directeps --height="30" --barcode="13" --data="123456789104" > 1234-ean.eps | |
# UPC | |
zint --directeps --height="30" --barcode="34" --data="12345678910" > 1234-upc.eps | |
# Help |
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
# Find | |
([A-Z]{3,}) | |
# Replace | |
<em>\L\1</em> | |
# Matching: Case sensitive |
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
find . -type d -name .svn -exec rm -rf {} + |
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
// Output iOS Assets.jsx | |
// 2013 Todd Linkner | |
// License: none (public domain) | |
// v1.0 | |
// | |
// This script is for Illustrator CS6. It outputs iOS standard and @2x | |
// assets from layers. | |
// | |
// Script concept and saveToRes function based on herkulano's | |
// Illustrator Script for Mobile: https://github.com/herkulano |
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
/* Debug: Tell Size | |
=========================================================== | |
Show browser size. Turn off on production. | |
*/ | |
(function () { | |
var ts = document.createElement('div'); | |
ts.setAttribute("id", "msg"); | |
ts.style.cssText = "padding:0.25em;position:fixed;bottom:0;right:0;font-size:0.75em;font-weight:bold;color:white;background:red;"; | |
document.body.appendChild(ts); |
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
alert('Hi.'); |
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
pandoc input-file.docx -t markdown -o output-file.md |
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
server () { | |
python -m SimpleHTTPServer & | |
open http://0.0.0.0:8000 | |
} |
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
/* | |
Fluid element that maintains a specific aspect ratio | |
==================================================== | |
<div class="aspect-wrapper"> | |
<div class="inner"> | |
<img src="image.jpg" alt="Image"> | |
</div> | |
</div> | |
*/ |