This file contains hidden or 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> | |
| <meta charset="utf-8" /> | |
| <title>Looking At Underscore.js Templates</title> | |
| </head> | |
| <body> | |
| <h1> | |
| Looking At Underscore.js Templates |
This file contains hidden or 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 evaluate the given expression in the context of the given | |
| // context object (for variable look-up). | |
| evaluateExpression = function( context, expression ){ | |
| // Copy the context object to the look-up. | |
| structAppend( local, context ); |
This file contains hidden or 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 lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title> | |
| Detecting Rendered Line Breaks In A Text Node In JavaScript | |
| </title> | |
| <link rel="stylesheet" type="text/css" href="./main.css" /> | |
| </head> | |
| <body> |
This file contains hidden or 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 define the application settings and event handlers." | |
| { | |
| // Define the application settings. | |
| this.name = "ResponseTesting"; | |
| this.applicationTimeout = createTimeSpan( 1, 0, 0, 0 ); | |
| this.sessionManagement = false; | |
| this.setClientCookies = false; |
This file contains hidden or 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
| :host { | |
| color: inherit ; | |
| display: inline-block ; | |
| // Let the app-icon naturally scale with the font-size. Since this is bound to the | |
| // host element, it can easily be overridden by contextual styling. | |
| height: 1em ; | |
| width: 1em ; | |
| } | |
This file contains hidden or 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
| // Require the application modules. | |
| var api = require( "./api" ); | |
| // ----------------------------------------------------------------------------------- // | |
| // ----------------------------------------------------------------------------------- // | |
| var TEN_SECONDS = ( 10 * 1000 ); | |
| function runWithTimeout( command, timeout = TEN_SECONDS ) { |
This file contains hidden or 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
| <cfhttp | |
| url="https://www.vtext.com/customer_site/jsp/disclaimer.jsp" | |
| method="POST" | |
| useragent="Mozilla / Firefox" | |
| result="objHTTP"> | |
| <!--- Set referrer. ---> | |
| <cfhttpparam | |
| type="CGI" |
This file contains hidden or 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> | |
| startedAt = getTickCount(); | |
| inputFilepath = expandPath( "../images/beach-small.jpg" ); | |
| // In the first approach to drawing a partially-transparent image over another, we're | |
| // going to create an intermediary image that represents the image overlay. This will | |
| // the SCALED and PARTIALLY-TRANSPARENT image. | |
| // -- |
This file contains hidden or 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
| /** | |
| * Find the amount of auto-increment "space" has been used. This may can help identify | |
| * tables that are running out of available ID values. | |
| */ | |
| SELECT | |
| t.table_name, | |
| t.column_name, | |
| -- The highest possible ID that can be created with this data-type. | |
| t.max_value, | |
| -- The last ID created in this table. |
This file contains hidden or 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
| {"id":1,"name":"O Brother, Where Art Thou?"} | |
| {"id":2,"name":"Home for the Holidays"} | |
| {"id":3,"name":"The Firm"} | |
| {"id":4,"name":"Broadcast News"} | |
| {"id":5,"name":"Raising Arizona"} |
NewerOlder