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"} |
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
| <!--- | |
| Even when using the "smart" buffer, we can still use our | |
| standard ColdFusion header values. | |
| ---> | |
| <cfheader | |
| name="content-disposition" | |
| value="attachment; filename='girls.png'" | |
| /> | |
| <!--- |
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
| <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 || ","); |
NewerOlder