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 / docx2html.py
Last active August 29, 2015 14:17
Word Doc to Clean HTML
#!/usr/bin/env python
# Setup: install pandoc
# https://github.com/jgm/pandoc/releases
# To run script:
# python python docx2html.py [filepath]
# Platypus app setup:
# App Name: docx2html
# Script Type: Python
# Path: /usr/bin/python
# Script Path: Edit: [Paste In]
@tlinkner
tlinkner / Output iOS PDF Assets.jsx
Created December 4, 2014 22:01
Sage Illustrator layers to PDFs Assets for iOS
// 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
@tlinkner
tlinkner / radioclasses.html
Created November 19, 2014 18:15
Set Classes by Radio Buttons and Checkboxes with JQuery
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Radio Classes</title>
<style>
.is-readonly {
color: red;
}
@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
//
@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 / 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 / Bash svn cleaner
Created February 28, 2013 19:36
Recursively delete .svn directories
find . -type d -name .svn -exec rm -rf {} +
@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 / 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 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)