Skip to content

Instantly share code, notes, and snippets.

@edeustace
edeustace / step-one-example
Created November 18, 2010 15:17
step-one
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0045)http://sarahbrownenutrition.ie/slideshow.html -->
<html><head profile="http://www.w3.org/2005/10/profile"><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" src="./Sarah Browne Nutrition _ Cookery_files/jquery-1.4.4.js"></script>
<script src="./Sarah Browne Nutrition _ Cookery_files/jquery.min.js" type="text/javascript"></script>
<script src="./Sarah Browne Nutrition _ Cookery_files/jquery.nivo.slider.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(window).load(function() {
<?xml version="1.0" encoding="utf-8"?>
<s:Application
minWidth="955" minHeight="600"
creationComplete="init()"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:timing="com.ee.example.timing.*">
<fx:Script>
<![CDATA[
@edeustace
edeustace / Countdown.as
Created November 26, 2010 13:47
A simple countdown class
package com.ee.example.timing
{
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.TimerEvent;
import flash.utils.Timer;
[Event(type="flash.events.Event", name="countdownComplete")]
public class Countdown extends EventDispatcher
{
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
creationComplete="init()"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
protected function button1_clickHandler(event:MouseEvent):void
<s:RadioButton
width="100%"
label="{resourceManager.getString('application', 'PREF_FITWIDTH')}"
styleName="white"
selected="{controller.user.preferences.defaultDocumentZoom == resourceManager.getString('application', 'PREF_FITWIDTH')}"
group="{defaultDocumentZoom}"/>
to:
private static const PREF_WIDTH = resourceManager.getString('application','PREF_WIDTH');
<s:RadioButton
width="100%"
label="{resourceManager.getString('application', 'PREF_FITWIDTH')}"
styleName="white"
selected="{controller.user.preferences.defaultDocumentZoom == resourceManager.getString('application', 'PREF_FITWIDTH')}"
group="{defaultDocumentZoom}"/>
to:
private static const PREF_WIDTH = resourceManager.getString('application','PREF_WIDTH');
@edeustace
edeustace / gist:730531
Created December 6, 2010 16:32
page.html
<html>
<head>
<title>Tees and Cees demo</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
<script src="TeesAndCees.js" type="text/javascript"></script>
</head>
<script>
$(document).ready( function(){
//alert("jquery ready");
@edeustace
edeustace / gist:730532
Created December 6, 2010 16:32
example.js
jQuery.fn.teeAndCeeLinks = function( options ){
//find <a>
var $tAndCLinks = this.find('a');
$tAndCLinks.each( function(){
console.log( this );
import java.sql.*;
public class Runner
{
public static void main( String[] args )
{
System.out.println("hello");
runProcedure();
}
<ul>
<li>
<a>
</li>
...
</ul>
<!-- image link -->
<a href="blah"><img src="blah"/></a>