Skip to content

Instantly share code, notes, and snippets.

View matthaliski's full-sized avatar
🏠
Building stuff.

Matt Haliski matthaliski

🏠
Building stuff.
View GitHub Profile
@matthaliski
matthaliski / WordPress Admin Column Views
Created May 24, 2012 21:31
Column Views for Wordpress
//Define the colums we want to see in the work view
add_filter("manage_edit-work_columns", "work_edit_columns");
function work_edit_columns($columns)
{
$columns = array(
"cb" => "<input type=\"checkbox\" />",
"title" => "Project",
"client" => "Client",
"disciplines" => "Disciplines",
"comments" => "<img alt='Comments' src='http://matthaliski.com/wp-admin/images/comment-grey-bubble.png'>",
@matthaliski
matthaliski / StageListener.as
Last active October 5, 2015 08:28
Listens for the stage
//It's a good idea to listen for the stage before you attempt to access it
if (stage) {
init();
} else {
addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
}
@matthaliski
matthaliski / DefineSwf.as
Last active October 5, 2015 08:28
Define swf properties in ActionScript only projects
//There is no need to hook up to a pointless FLA in larger projects. Just define your swf properties like this
//Included in the Document Class within the package.
[SWF(width='160',height='600',backgroundColor='#000000',frameRate='24')]