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
<cfset var qQuery = getQuery( arguments.filter ) /> | |
<cfif qQuery.recordCount > | |
<cfreturn qQuery[arguments.column][1] /> | |
</cfif> |
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
java -jar compiler.jar --js input.js --js_output_file output.js --compilation_level WHITESPACE_ONLY --formatting pretty_print |
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
<cfset myTeaser = "Some cool stories and news articles from yest..."> | |
<cfset myObj = CreateObject("java", "java.lang.String")/> | |
<cfset myStr = myObj.init(myTeaser) /> | |
<cfset news = mid(myTeaser,1,myStr.lastIndexOf(' ')) /> |
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
<!--- | |
Parts of this are based on Tim Dawe's | |
http://amazonsig.riaforge.org | |
and | |
Joe Danziger's Amazon S3 REST Wrapper | |
http://amazons3.riaforge.org/ | |
Written by Patrick Liess |
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
var http = require('http'); | |
var url = require('url'); | |
var fs = require('fs'); | |
var XmlStream = require('xml-stream'); | |
var config = require('./config.json'); // already parsed | |
var downloadFile = function( targetUrl ) { | |
var xmlItem = ""; | |
var timestamp = parseInt( new Date().getTime() / 1000 ); | |
var options = { |
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
var http = require('http'); | |
http.createServer( function( req, res ) { | |
res.writeHead( 200, { 'Content-Type' : 'text/plain' } ); | |
res.end( 'Hello World\n' ); | |
} ).listen( 1337, '127.0.0.1' ); | |
console.log( 'Server running at http://127.0.0.1:1337/' ); |
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
( function() { | |
var timeoutDuration = 30; | |
var mouseMoved = 0; | |
var keyPressed = 0; | |
var getDocument = function() { | |
if ( window ) { | |
return window.document; | |
} |
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
/** | |
* convert list to a list with numeric elements | |
* | |
* @param required string numList source list with elements] | |
* @return list with numeric items | |
*/ | |
string function toNumericList( required string numList ) { | |
var numListLen = listLen( arguments.numList ); | |
var result = ""; | |
if ( numListLen > 0 ) { |
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
/** | |
* Build query string and parameter array by using the placeholders like "__name__". | |
* It is mandatory to use sqlQuery or sqlName. Otherwise no sql will be used! | |
* | |
* @param optional string sqlQuery pass a query string to read and convert | |
* @param optional string sqlName pass the name of the global sql struct property instead of sqlQuery | |
* @param optional struct params map struct with key to replace and value to use in sql properties array | |
* @return a struct containing the processes "sql" as string and the "params" as array | |
*/ | |
struct function queryMake( string sqlQuery, string sqlName, struct params ) { |
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 . -iname '*.cfc' | xargs grep 'string' -sl | |
find . | xargs grep 'string' -sl |