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"> | |
/** |
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
<script type="text/javascript"> | |
// This will parse a delimited string into an array of | |
// arrays. The default delimiter is the comma, but this | |
// can be overriden in the second argument. | |
function CSVToArray( strData, strDelimiter ){ | |
// Check to see if the delimiter is defined. If not, | |
// then default to comma. | |
strDelimiter = (strDelimiter || ","); |
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
CREATE TABLE `friend` ( | |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`name` varchar(50) NOT NULL, | |
`isBFF` tinyint(1) unsigned NOT NULL, | |
`createdAt` datetime NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
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
<!--- | |
Create an XML document on which to test new XPath 2.0 | |
functionality support. | |
---> | |
<cfxml variable="bookData"> | |
<books> | |
<book id="101" rating="4.5"> | |
<title>Muscle: Confessions of an Unlikely Bodybuilder</title> | |
<author>Samuel W. Fussell</author> |
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 { animate } from "@angular/core"; | |
import { ChangeDetectorRef } from "@angular/core"; | |
import { Component } from "@angular/core"; | |
import { style } from "@angular/core"; | |
import { transition } from "@angular/core"; | |
import { trigger } from "@angular/core"; | |
interface Friend { | |
id: number; |
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
<cffunction | |
name="ListDeleteValue" | |
access="public" | |
returntype="string" | |
output="false" | |
hint="Deletes a given value (or list of values) from a list. This is not case sensitive."> | |
<!--- Define arguments. ---> | |
<cfargument | |
name="List" |
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
// In this version of the cache, we're going to use an internal object with a null | |
// prototype and then assume that no user-provided cache keys will ever conflict with | |
// native keys. | |
function SafeCache() { | |
var cache = Object.create( null ); | |
// Reveal the public API. | |
return({ | |
get: get, |
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
<cfoutput>#coolBeans#</cfoutput> | |
<cfdump var="request" abort="true" /> | |
This is interesting. But, it needs to be updated. |
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
component | |
output = false | |
hint = "I report server-side errors to the BugSnag API." | |
{ | |
/** | |
* I initialize the BugSnag API client. | |
*/ | |
public void function init( required string apiKey ) { |
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
<div> | |
<mark>[Checkbox]</mark> | |
</div> |