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
| #!/bin/sh | |
| defaults read com.apple.finder CreateDesktop > /dev/null 2>&1 | |
| enabled=$? | |
| if [ "$1" = "off" ]; then | |
| if [ $enabled -eq 1 ]; then | |
| defaults write com.apple.finder CreateDesktop false | |
| osascript -e 'tell application "Finder" to quit' | |
| open -a Finder |
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
| // MultiExporter.jsx | |
| // Version 0.1 | |
| // Version 0.2 Adds PNG and EPS exports | |
| // Version 0.3 Adds support for exporting at different resolutions | |
| // Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize | |
| // Version 0.5 Fixed cropping issues | |
| // Version 0.6 Added inner padding mode to prevent circular bounds clipping | |
| // | |
| // Copyright 2013 Tom Byrne | |
| // |
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
| /** | |
| * Add a delay at the end of the timeline (or at any label) | |
| * @param {number} delay Seconds to wait | |
| * @param {string} position Label name where to start the delay | |
| * | |
| * Usage: tl.addDelay(4); //easy! | |
| */ | |
| TimelineLite.prototype.addDelay = function (delay, position) { | |
| var delayAttr; | |
| if(typeof delay === 'undefined' || isNaN(delay)){ |
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
| Option Explicit | |
| ' v1.01 | |
| Public Sub d3forceHere() | |
| d3ForceDo | |
| End Sub | |
| Public Sub d3forceHereItunes() | |
| d3ForceDo , "itunes force options", "itunes force fields" | |
| End Sub | |
| Public Sub d3forceHereNodesOnly() | |
| d3ForceDo , "nodes only force options", "nodes only force fields" |
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
| /** | |
| * Provide support for retina-specific image elements and background styles | |
| * see: http://blog.rjzaworski.com/2012/11/scaling-images-for-retina-displays/ | |
| */ | |
| (function (doc) { | |
| var opts = { | |
| find: /(.+)(\.\w{3,4})$/, | |
| replace: '$12x$2', |