Skip to content

Instantly share code, notes, and snippets.

package com.codecatalyst.charting.component
{
import flash.geom.Point;
import flash.geom.Rectangle;
import mx.charts.DateTimeAxis;
import mx.charts.chartClasses.CartesianChart;
import mx.charts.chartClasses.CartesianDataCanvas;
import mx.charts.chartClasses.ChartState;
import mx.styles.CSSStyleDeclaration;
package com.codecatalyst.components
{
import mx.containers.Box;
public class BoxFrame extends Box
{
// ========================================
// Constructor
// ========================================
package
{
import com.codecatalyst.util.invalidation.InvalidationTracker;
import mx.core.UIComponent;
public class InvalidationTrackerExampleComponent extends UIComponent
{
// ========================================
// Protected properties
@johnyanarella
johnyanarella / GroupTemplateSamples.mxml
Created February 16, 2011 22:04
flex-extensions RadioGroup, CheckGroup and Group template samples
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:fe="http://www.codecatalyst.com/2011/flex-extensions">
<mx:Style>
CheckGroup
{
padding-left: 10;
@johnyanarella
johnyanarella / gist:3450782
Created August 24, 2012 13:52
CoffeeScript interactive compiler shell script.
#!/bin/bash
echo -n "> "
while read -r line
do
echo
coffee -ecb "$line"
echo
echo -n "> "
done
@johnyanarella
johnyanarella / index.html
Created August 31, 2012 11:19
Configuring Ext JS's Loader to load individual Deft JS files during development.
<!DOCTYPE HTML>
<html>
<head>
<title>Example Application</title>
<link rel="stylesheet" type="text/css" href="lib/extjs-4.1.0/resources/css/ext-all.css"/>
<script type="text/javascript" src="lib/extjs-4.1.1/ext-dev.js"></script>
<script type="text/javascript">
Ext.Loader.setConfig({
enabled: true,
@johnyanarella
johnyanarella / querystring.underscore.js
Last active December 15, 2015 17:08
toQueryString() and fromQueryString() mixins for underscore.js
/*
* Copyright (c) 2012-2013 [CodeCatalyst, LLC](http://www.codecatalyst.com/).
* Open source under the [MIT License](http://en.wikipedia.org/wiki/MIT_License).
*/
require( [ 'underscore' ], function ( _ ) {
_.mixin( {
'toQueryString': function ( parameters ) {
var queryString = _.reduce(
parameters,
function ( components, value, key ) {