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>Fixed-Length Queue Data Type In JavaScript</title> | |
<script type="text/javascript"> | |
// Create a constructor for the fixed-length queue. This is | |
// really more of a FACTORY than a construtor since an |
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
// Import the core node modules. | |
var mysql = require( "mysql" ); | |
// Create the connection to your database. This time, we're going to use our own custom | |
// type casting function to manually coerce some of the columns. | |
var db = mysql.createConnection({ | |
host: "localhost", | |
user: "root", | |
password: "", | |
database: "testing", |
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
// Import the core angular services. | |
import { Component } from "@angular/core"; | |
// Import the application components and services. | |
import { MyService } from "./my-service/my-service.module"; | |
// ----------------------------------------------------------------------------------- // | |
// ----------------------------------------------------------------------------------- // | |
@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
<!doctype html> | |
<html ng-app="Demo"> | |
<head> | |
<meta charset="utf-8" /> | |
<title> | |
Posting Form Data With $http In AngularJS | |
</title> | |
</head> | |
<body ng-controller="DemoController"> |
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> | |
// I am the value that we will be encrypted and decrypting. | |
input = "Get out back and hold the monkey!"; | |
// Generated using generateSecretKey( "AES", 128 ). | |
encryptionKey = "JZidBZLaYf27huVuM4MNTA=="; | |
// Put the input through the encryption and decryption life-cycle using the AES | |
// algorithm and the default [AES], [IVorSalt], and [iterations] values. |
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
<!--- | |
We have to start out be defining what the sets of valid | |
character data are. While this might not look elegant, | |
notice that it gives a LOT of power over what the sets | |
are without writing a whole lot of code or "condition" | |
statements. | |
---> | |
<!--- Set up available lower case values. ---> | |
<cfset strLowerCaseAlpha = "abcdefghijklmnopqrstuvwxyz" /> |
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> | |
// Generated using generateSecretKey( "AES", 128 ). | |
encryptionKey = "Glu0r6o0GzBZIe0Qsrh2FA=="; | |
// Generated using randRange() with "SHA1PRNG" algorithm. | |
initializationVector = "53IQ1tPX3aHxzqV4AyePDg=="; | |
// I am the value that we will be encrypted and decrypting. | |
input = "Get out back and hold the monkey!"; |
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> | |
Creating A Simple Modal System 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> | |
// None of the following three return() statements work when used | |
// in conjunction with implicit-notations for ARRAY, STRUCT, and | |
// CLOSURE. Must return "( )" from return statement in order to | |
// parse properly. | |
function returnImplictNotation(){ | |
return( [ ] ); |
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>Cloning RegExp (Regular Expression) Objects In JavaScript</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
/** |