This file contains 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
<cfcomponent | |
output="false" | |
hint="I define the application settings and event handlers."> | |
<!--- Define the application settings. ---> | |
<cfset this.name = hash( getCurrentTemplatePath() ) /> | |
<cfset this.applicationTimeout = createTimeSpan( 0, 0, 30, 0 ) /> | |
<cfset this.sessionManagement = false /> | |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Loading GitHub Gists After Page Content Has Loaded -- UPDATED</title> | |
<style type="text/css"> | |
.gist, | |
pre { | |
font-size: 12px ; |
This file contains 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
<!--- Param our hashable string. ---> | |
<cfparam name="form.hashable" type="string" default="" /> | |
<!--- Check to see if we have a hashable string. ---> | |
<cfif len( form.hashable )> | |
<!--- Create an MD5 hash of the string. ---> | |
<cfset hashedString = hash( form.hashable, "MD5" ) /> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Inline Functions Create Sandboxes For Variable Binding</title> | |
<script type="text/javascript"> | |
// Create a buffer to hold our function - these will invoked | |
// at the end to demonstrate variable binding. | |
var methodBuffer = []; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Loading GitHub Gists After Page Content Has Loaded</title> | |
<style type="text/css"> | |
.gist, | |
pre { | |
font-size: 12px ; |
This file contains 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
// Define the color swtch View controller. | |
define( | |
[ | |
"jquery", | |
"signal" | |
], | |
function( $, Signal ){ | |
// I return an initialized component. |
This file contains 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
// Define the color swtch View controller. | |
define( | |
[ | |
"jquery", | |
"signal" | |
], | |
function( $, Signal ){ | |
// I return an initialized component. |
This file contains 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
// Define our class within the dependency management system. | |
define( | |
[ | |
"dependency-1", | |
"dependency-2" | |
], | |
function( Dependency1, Dependency2 ){ | |
// Define the actual class constructor and methods. |
This file contains 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
// Define the Friend model class. This extends the core Model. | |
define( | |
[ | |
"./model" | |
], | |
function( Model ){ | |
// I return an initialized object. | |
function Friend( name ){ |
This file contains 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
// Define the aynchronous validate() plugin for jquery. | |
(function( $ ){ | |
// Define the validation factory. This will create an augmented | |
// Deferred object for each validator within the validation chain. | |
function Validation(){ | |
// Create a deferred object that will be used to hold the | |
// state of a given validation step. |
OlderNewer