Skip to content

Instantly share code, notes, and snippets.

View tlinkner's full-sized avatar

tlinkner tlinkner

  • TLDA
  • Providence, RI
View GitHub Profile
@tlinkner
tlinkner / hiworld.js
Created April 24, 2012 20:21
Hi, World!
alert('Hi.');
@tlinkner
tlinkner / Output Android Assets.jsx
Last active July 24, 2018 16:54
Photoshop script to output Android XHDPI, HDPI, MDPI, and LDPI PNGs
// 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.
/*
@tlinkner
tlinkner / Output iOS Icons.jsx
Last active March 21, 2019 18:06
Photoshop script to output iOS icons, now with iOS 8 sizes
// 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
@tlinkner
tlinkner / Output Android Icons.jsx
Last active February 19, 2021 14:15
Photoshop script to output Android icons
// 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)
@tlinkner
tlinkner / Output iOS 1x Assets.jsx
Last active July 23, 2018 04:53
Photoshop script to output iOS 1x PNGs
// 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
@tlinkner
tlinkner / Output iOS Assets.jsx
Last active December 11, 2015 16:28
This script is for Illustrator CS6. It outputs iOS standard and @2x assets from layers. It fits the artboard to the items on the layer, including items without fill and stroke.
// 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
@tlinkner
tlinkner / Bash svn cleaner
Created February 28, 2013 19:36
Recursively delete .svn directories
find . -type d -name .svn -exec rm -rf {} +
@tlinkner
tlinkner / uc-words-to-lc-em
Created April 4, 2013 20:10
BBedit grep pattern to replace uppercase words with lowercase words wrapped in <em>.
# Find
([A-Z]{3,})
# Replace
<em>\L\1</em>
# Matching: Case sensitive
@tlinkner
tlinkner / brackets.json
Created September 17, 2014 15:13
Brackets.io settings for sprint 43 experimental build 0.43.0-14375. More sensible auto closing of tags, disabled smart indent.
{
"useTabChar": false,
"tabSize": 4,
"smartIndent": false,
"closeTags": {
"whenOpening": false,
"whenClosing": true
},
"spaceUnits": 4,
"closeBrackets": true,
@tlinkner
tlinkner / Output Android Assets.jsx
Created November 11, 2014 18:25
This script is for Illustrator CS6. It outputs Android standard assets from layers. It fits the artboard to the items on the layer, including items without fill and stroke.
// 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
//