Skip to content

Instantly share code, notes, and snippets.

View shiftregister-vg's full-sized avatar
🙃
Crunching bits

The Dev Formerly Known as Steve Good shiftregister-vg

🙃
Crunching bits
  • Universal Music Group | Corp IT
View GitHub Profile
package com.lintpanzer.managers
{
import com.asfusion.mate.events.Dispatcher;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.IEventDispatcher;
public class ManagerBase extends EventDispatcher
{
<g:if test="${ grails.util.GrailsUtil.getEnvironment().equals(org.codehaus.groovy.grails.commons.GrailsApplication.ENV_PRODUCTION) }">
<!-- Markup to include ONLY when in production -->
</g:if>
<g:if env="production">
<!-- Markup to include ONLY when in production -->
</g:if>
@shiftregister-vg
shiftregister-vg / Microsoft.PowerShell_profile.ps1
Created December 8, 2010 13:30
ColdFusion MultiServer PowerShell Script
new-alias jrun "C:\JRun4\bin\jrun.exe"
function cf($server="cfusion"){
jrun -start $server
}
@shiftregister-vg
shiftregister-vg / Microsoft.PowerShell_profile.ps1
Created December 8, 2010 13:42
ColdFusion Standard PowerShell Script
new-alias jrun "C:\ColdFusion9\runtime\bin\jrun.exe"
function cf($server="coldfusion"){
jrun -start $server
}
@shiftregister-vg
shiftregister-vg / member_list.groovy
Created February 2, 2011 15:41
Returns a list of Members that are not the supplied member or its children or parents, which are just collections of Members in themselves.
// member.children() == Collection of Member instances
// member.parents() == Collection of Member instances
Member.findAll("from Member as m where m.id not in (:ids)",[ids:[member.id] + member.children()*.id + member.parents()*.id])
@shiftregister-vg
shiftregister-vg / Showdown.as
Created July 10, 2011 14:52 — forked from cstrahan/Showdown.as
Showdown.as: An AS3 port of John Fraser's showdown.js
//
// Showdown.as -- An ActionScript port of showdown.js
//
// Copyright (c) 2010 Charles Strahan.
//
// Original Showdown Copyright (c) 2007 John Fraser.
// <http://attacklab.net/showdown/>
//
// Original Markdown Copyright (c) 2004-2005 John Gruber
// <http://daringfireball.net/projects/markdown/>
@shiftregister-vg
shiftregister-vg / Document.m
Created October 17, 2011 06:09
Class file that manages employees
#import "Document.h"
#import "Person.h"
@implementation Document
- (id)init {
self = [super init];
if (self) {
employees = [[NSMutableArray alloc] init];
}
@shiftregister-vg
shiftregister-vg / cfeach.cfm
Created November 4, 2011 20:32
Wishful thinking: cfeach tag
<cfeach in="#myCollection#" var="myItem">
<cfset myItem.doStuff() />
</cfeach>
<cfscript>
each(myCollection,function(myItem){
myItem.doStuff();
}
</cfscript>
@shiftregister-vg
shiftregister-vg / Address.as
Created November 18, 2011 21:00
Nested Complex DataTypes
package {
[RemoteClass(alias="Address")]
public class Address {
// some properties would be here
}
}