This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
# Rename files | |
### brew install rename | |
### Dry run | |
rename -nvs searchword replaceword * | |
### Rename | |
rename -vs searchword replaceword * | |
### Node renamer |
This file contains hidden or 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
module.exports = function (grunt) { | |
"use strict"; | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { | |
prod: { | |
options: { | |
outputStyle: 'compressed' | |
}, | |
files: { |
This file contains hidden or 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
module.exports = function (grunt){ | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
// Watches for changes in the the specified files and run the task | |
watch : { | |
refresh : { | |
options :{ | |
livereload: '<%= connect.options.livereload %>' | |
}, | |
files: ['www/**/*.js','www/**/*.scss','www/**/*.css','www/**/*.html'], |
This file contains hidden or 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 hidden or 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 hidden or 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> | |
*/ |
This file contains hidden or 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); |
NewerOlder