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
#!/usr/bin/env bash | |
function init() { | |
clear | |
# Display instructions: | |
echo -e "\033[1mSIMPLE SPRITE SHEET CREATION SCRIPT\033[0m" | |
echo "-----------------------------------" | |
echo "1. Navigate to the folder that contains your tile images." |
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
/* jshint laxbreak:true, -W043 */ | |
/* globals app, $, BridgeTalk */ | |
// jshint ignore:start | |
#target illustrator | |
#targetengine main | |
// jshint ignore:end | |
var TEST = (function($application, $helper, undefined) { | |
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
function graphic_to_text(infiles) { // Array of file objects. | |
var outfile, | |
s, | |
re1 = /^\(new String\(/, | |
re2 = /\)\)$/; | |
for (var i = 0; i < infiles.length; i++) { | |
if (infiles[i].exists) { | |
outfile = File (infiles[i].fullName.replace (/\.(png|idrc)$/, '.txt')); | |
outfile.open ('w'); | |
infiles[i].encoding = 'BINARY'; |
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
#!/bin/bash | |
# Ensure we are working from the same directory this script is in | |
cd "$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
clear | |
export BLENDER_CONFIG_DIR=~/Library/Application\ Support/Blender | |
export CURRENT_WORKING_DIRECTORY=$(pwd) | |
export BLENDER_PLUGINS_DIR=$CURRENT_WORKING_DIRECTORY/Blender\ Plugins |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#target Illustrator | |
var idoc = idoc; | |
var ilayer; | |
var exists = function(name) { | |
var i; | |
var il; | |
for (i = 0, il = idoc.layers.length; i < il; i++) { | |
if (idoc.layers[i].name == name) { | |
return true; |
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
console.log('2,3'); | |
phantom.exit(); |
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
<!doctype html> | |
<html class="no-js no-touch" lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<script>/*! no-js uglified | https://gist.github.com/mhulse/4704893 */!function(e){e.documentElement.className=e.documentElement.className.replace(/\bno-js\b/,"js")}(document);</script> | |
<script>/*! no-touch uglified | https://gist.github.com/mhulse/4704893 */!function(o,n,c){("ontouchstart"in o||o.DocumentTouch&&n instanceof DocumentTouch||c.MaxTouchPoints>0||c.msMaxTouchPoints>0)&&(n.documentElement.className=n.documentElement.className.replace(/\bno-touch\b/,"touch"))}(window,document,navigator);</script> | |
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
// http://localhost:41416/ | |
// … and then view console log. | |
gist: 'https://gist.githubusercontent.com/mhulse/93191698219b33471883a4846dd47809/raw/keys.json', | |
command: 'lsappinfo info -only bundlepath `lsappinfo front`', | |
refreshFrequency: '5s', | |
style: [ |