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
/** | |
* Quick Build File: Publish using CTRL+F8 | |
* | |
* @mxmlc -debug -o bin/$(FileName).swf | |
* | |
* Instructions | |
* ============ | |
* | |
* All switches should be added to the mxmlc directive above. | |
* |
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
/** | |
* Convert selected elements to library items | |
* @author Dave Stewart | |
* @url www.xjsfl.com | |
*/ | |
// variables | |
var dom = document, timeline, element, names = [], name; | |
// create a new movieclip in which to do our conversion |
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
/** | |
* PhotoShop Script to check the consistency of fonts in a document | |
* @author Dave Stewart | |
* @date 23 May 2013 | |
* @url twitter.com/dave_stewart | |
*/ | |
function checkFonts(fontName) | |
{ | |
// functions | |
function checkSet(set) |
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
$(function(){ $('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=2" />').appendTo('head'); }); |
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
package text | |
{ | |
import flash.events.Event; | |
import flash.text.TextField; | |
import flash.text.TextFieldAutoSize; | |
import flash.text.TextFormat; | |
/** | |
* Class to manage a TextField instance and reduce its fontsize to ensure it stays within its original dimensions | |
* @author Dave Stewart |
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
function pad(v) | |
{ | |
v = String(v); | |
if(v.length == 1) | |
{ | |
v = '0' + v; | |
} | |
return v; | |
} |
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
/** | |
* PhotoShop script to list used fonts | |
* @author Dave Stewart | |
* @date 23 May 2013 | |
* @url twitter.com/dave_stewart | |
*/ | |
function listFonts() | |
{ | |
// functions | |
function checkSet(set) |
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
/* scale video container proportionally to 16:9 */ | |
.video{ | |
width:100%; | |
padding-bottom: 56.25%; | |
position: relative; | |
float: left; | |
height: 0; | |
} | |
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
/** | |
* International HTML entities decode function | |
* Works with entity numbers and entity names | |
* | |
* modified and simplified from http://www.markledford.com/blog/2009/02/25/as3-htmldecode-htmlencode-xml-hack/ | |
* | |
* @usage htmlDecode('Hello & wélcome to <The Ω Show>'); | |
* Hello & wélcome to <The Ω Show> | |
* | |
* @param value The string to decode |
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
var str = ''; | |
$('a[href^="/domains/"]').each(function(i, e){ | |
var $e = $(e); | |
var url = $(e).attr('href').replace('index.cgi', 'action.cgi?action=lock_unset'); | |
$(e).attr('href', url); | |
$.get(url, function(data){ | |
data = data.replace(/^[\s\S]+?<body.+?>|<\/body>[\s\S]+$/g, ''); | |
var $dom = $('<div>').html(data); | |
str += $dom.find('#yesbox p').text() + '\n'; | |
console.clear(); |