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
javascript:function update(i, e){e = $(e);var src = e.attr('src').replace(/prepend=[^&]+/, 'prepend=' + str);e.attr('src', src);}var str = prompt('Enter sample text:', $.cookie('sample text') || 'The quick brown fox jumped over the lazy dog');if(str){$.cookie('sample text', str); $('img.listing_font_image').each(update);}void(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
/* | |
* Project: jQuery throttle plugin | |
* Description: Allows you to call a custom function on an element multiple times without flooding | |
* Author: Dave Stewart | |
* License: MIT | |
* Usage: $(element).throttle(function(){console.log(this);}, 'log'); | |
*/ | |
;(function ( $, window, undefined ) { | |
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
// init | |
xjsfl.init(this); | |
clear(); | |
// get the first element | |
var obj = $('*').get(0); | |
// inspect properties |
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
// code: | |
inspect($selection[0].edges, 6, {debug:true}); // debug set to on, so that output breaks if Flash errors | |
// results: | |
Inspect: Array (depth:6, objects:16, values:84, time:0.0 seconds) | |
-------------------------------------------------------------------------------- | |
array => Array | |
[0] => Edge |
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
/** | |
* Script to clean up the Heart Internet Customer Control Panel | |
* | |
* See this link for a preview of how the panel looks after a cleanup | |
* @link http://imgur.com/KJ1JX | |
* | |
* Works as a firebug script, or can be minified and run from a bookmarklet | |
* @link http://fmarcia.info/jsmin/test.html | |
* | |
* Panel contents is customisable by editing the 'sections' object |
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
import flash.display.DisplayObject; | |
import flash.utils.describeType; | |
function optimize(element:DisplayObject):void | |
{ | |
function getFilterType(filter:*):String | |
{ | |
var xml:XML = flash.utils.describeType(filter); | |
return String(xml.@name).replace('flash.filters::', ''); | |
} |
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
/** | |
* Publish Hook class | |
* | |
* Features: | |
* | |
* - Runs pre and post publish hooks (any file on your hard drive, even other JSFL scripts) | |
* - Has a simple XUL UI to browse for files | |
* - Can load and save different profiles, say one for games, one for web | |
* - Stores setting in an XML config file, but could just as easily store those settings per document using document data | |
* - Can be set as Active or Inactive should you decide you need to disable it |
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
// Copy to: "C:\Program Files (x86)\Creative\Adobe Photoshop CS6\Presets\Scripts" or equivilent on a Mac | |
// Tested with Photoshop CS6, but should work with older versions. Backup existing files before copying over them! | |
// Copyright 2007. Adobe Systems, Incorporated. All rights reserved. | |
// This script will export each layer in the document to a separate file. | |
// Written by Naoki Hada | |
// ZStrings and auto layout by Tom Ruark | |
/* | |
@@@BUILDINFO@@@ Export Layers To Files.jsx 1.0.0.16 |
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
// Copy to: "C:\Program Files (x86)\Creative\Adobe Photoshop CS6\Presets\Scripts" or equivilent on a Mac | |
// Tested with Photoshop CS6, but should work with older versions. Backup existing files before copying over them! | |
// Copyright 2007. Adobe Systems, Incorporated. All rights reserved. | |
// This script will apply each comp and then export to a file | |
// Written by Naoki Hada | |
// ZStrings and auto layout by Tom Ruark | |
// PNG support by Jeffrey Tranberry | |
/* |
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
+-----------------------------------------------+---------------------------------------------+------------------------------------------------------------------------------------------------------------+ | |
| hierarchy | class path | path | | |
+-----------------------------------------------+---------------------------------------------+------------------------------------------------------------------------------------------------------------+ | |
| com | | | | |
| xjsfl | | | |