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 PDF Assets.jsx | |
// 2014 Todd Linkner | |
// License: none (public domain) | |
// v1.0 | |
// | |
// This script is for Illustrator CS6. It outputs iOS PDF assets from layers. | |
// | |
// Install to /Applications/Adobe Illustrator CS6/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
// Output Android Icons.jsx | |
// 2012 Todd Linkner | |
// License: none (public domain) | |
// v1.0 | |
// | |
// This script is for Photoshop CS6. It outputs Android icons of the | |
// following sizes from a source PSD at least 512px x 512px | |
// | |
// store: | |
// Icon.png (512px x 512px) |
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 Icons.jsx | |
// 2014 Todd Linkner | |
// License: none (public domain) | |
// v1.2 | |
// | |
// This script is for Photoshop CS6. It outputs iOS icons of the following | |
// sizes from a source 1024px x 1024px PSD | |
// | |
// [name]-29.png | |
// [name]-29@2x.png |
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 Android Assets.jsx | |
// 2012 Todd Linkner | |
// License: none (public domain) | |
// v1.0 | |
// | |
// This scrip is for Photoshop CS6. It outputs Android XHDPI, HDPI, MDPI, | |
// and LDPI PNG assets from HDPI source files. The resulting PNGs will be | |
// placed in sub-folders within your target folder. | |
/* |
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 1x Assets.jsx | |
// 2012 Todd Linkner | |
// License: none (public domain) | |
// v1.0 | |
// | |
// This script is for Photoshop CS6. It outputs iOS 1x PNG icons | |
// from @2x PNG source files | |
/* | |
// BEGIN__HARVEST_EXCEPTION_ZSTRING |
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 Android Assets.jsx | |
// 2014 Todd Linkner | |
// License: none (public domain) | |
// v1.0 | |
// | |
// This script is for Illustrator CS6. It outputs Android 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
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 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 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
# Rename files | |
### brew install rename | |
### Dry run | |
rename -nvs searchword replaceword * | |
### Rename | |
rename -vs searchword replaceword * | |
### Node renamer |
NewerOlder