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 ng-app="Demo"> | |
<head> | |
<meta charset="utf-8" /> | |
<title> | |
Experimenting With "Query String Zones" In AngularJS | |
</title> | |
<link rel="stylesheet" type="text/css" href="./demo.css"></link> |
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 ng-app="Demo"> | |
<head> | |
<meta charset="utf-8" /> | |
<title> | |
Accessing The View-Model Inside The Link Function When Using Controller-As In AngularJS | |
</title> | |
<link rel="stylesheet" type="text/css" href="./demo.css"></link> |
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
<cfscript> | |
component | |
output = false | |
hint = "I log message to the given text file." | |
{ | |
// I initialize the logger to log to the given file. | |
public any function init( required string aFilePath ) { | |
filepath = aFilePath; |
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
<cfscript> | |
// Set up some non-Component data that will be serialized, saved, | |
// loaded, and then deserialized. Notice that we are including | |
// "ineresting" data types, including TimeStamps and Queries. | |
data = { | |
friends = [ | |
{ | |
name = "Tricia", | |
age = 47 |
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
<cfscript> | |
// Include the Amazon Web Service (AWS) S3 credentials. | |
include "aws-credentials.cfm"; | |
// Include some utility methods to make the AWS interactions easier. | |
include "udf.cfm"; | |
// The expiration must defined in UCT time. Since the Plupload widget may be on the | |
// screen for a good amount of time, especially if this is a single-page app, we |
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
<!--- NOTE: ColdFusion 11 was in BETA at the time of this writing. ---> | |
<cfscript> | |
// Define all of the attributes first. This allows you to | |
// conditionally build up the attributes to be used. | |
attributes = { | |
name: "asyncCode", | |
action: "run", | |
thisVar: "Hello", | |
thatVar: "World" |
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
<cfscript> | |
// Build the common arguments to be used across both HTTP request. | |
// I'm doing this just to emphasize that the only thing changing | |
// in the second request is the timeout-related arguments. | |
httpArguments = { | |
method = "get", | |
url = "http://#cgi.server_name##getDirectoryFromPath( cgi.script_name )#long-task.cfm" | |
}; |
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 ng-app="Demo"> | |
<head> | |
<meta charset="utf-8" /> | |
<title> | |
Sanity Check: $index vs. DOM In AngularJS Directives | |
</title> | |
<style type="text/css"> |
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
<!--- | |
Query for the files in the directory. | |
-- | |
NOTE: I am doing this so I don't have to embed high-ascii characters | |
in the code - I don't think my blog has the proper support for UTF-8 | |
encoding? Not sure. | |
---> | |
<cfset files = directoryList( expandPath( "./" ), false, "name", "Data*" ) /> | |
<!--- Isolate the file with foreign characters. ---> |
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
<cfscript> | |
// Set up test email and whitespace values. | |
space = chr( 32 ); | |
tab = chr( 9 ); | |
email = "sarah@domain.com"; | |
// Try various combinations of leading / trailing white space. | |
writeOutput( isValid( "email", "#email#" ) & "<br />" ); |
OlderNewer