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> | |
ormreload(); | |
//Save | |
objt6 = tbl6Service.new({"col":"tbl6"}); | |
objt7 = tbl7Service.new({"col":"tbl7"}); | |
objt8 = tbl8Service.new({"col":"tbl8"}); | |
objt6.addTbl8(objt8); |
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" singleton{ | |
// Default Action | |
property name="masterService" inject="entityService:tmaster" scope="variables"; | |
property name="detailService" inject="entityService:tdetail" scope="variables"; | |
function index(event,rc,prc){ | |
var queryService = new query(); | |
queryService.execute(sql="delete from tmaster where id not in (select masterid from tdetail)"); | |
queryService.execute(sql="DELETE FROM tdetail WHERE masterid not IN (select id from tmaster) or masterid is null"); | |
var msg = {}; | |
var myid = getTickCount(); |
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
<cfcomponent output="false"> | |
<cfproperty name="tbl1Service" inject="entityService:tbl1" scope="variables"> | |
<cfproperty name="tbl3Service" inject="entityService:tbl3" scope="variables"> | |
<cffunction name="index" access="public" returntype="void" output="false"> | |
<cfargument name="event" type="any"> | |
<cfscript> | |
var objT1 = tbl1Service.new({"col1":"new"}); | |
var objT3 = tbl3Service.new({"column2":'New'}); |
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
<cfparam name="url.x" default="1;delete from x"> | |
<cfset esapi = CreateObject("java", "org.owasp.esapi.ESAPI").encoder()> | |
<cfset codec = createObject("java","org.owasp.esapi.codecs.MySQLCodec").init(0)> | |
<cfset url.x = esapi.encodeForSQL(codec, url.x)> | |
<cfquery name="q" datasource="amex"> | |
select * from [users] | |
where id like #url.x# | |
</cfquery> | |
<cfdump var="#q#" /> |
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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template match="/"> | |
<html> | |
<head> | |
<style> | |
body{ | |
font-family: verdana,arial,sans-serif; |
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> | |
writeOutput("Before lock at #now()#"); | |
lock name="threadlock" timeout="3" type="exclusive" | |
{ | |
writeOutput("<br/>started at #now()#"); | |
thread action="sleep" duration="10000"; | |
writeOutput("<br/>ended at #now()#"); | |
} | |
writeOutput("<br/>After lock at #now()#"); | |
</cfscript> |
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
<cfdocument format="PDF" fontembed="true" filename="#expandpath('./test.pdf')#" overwrite="true"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Test</title> | |
<style type="text/css"> | |
@font-face | |
{font-family:"Calibri"; } | |
@font-face | |
{font-family:"Impact"; } | |
@font-face |
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
#this is an autogenerated file. please remove manually any references to copyrighted fonts | |
#Fri Apr 17 20:00:52 CEST 2009 | |
Arial=arial.ttf | |
Arial\ Bold=arialbd.ttf | |
Arial\ Bold\ Italic=arialbi.ttf | |
Arial\ Italic=ariali.ttf | |
Courier\ New=cour.ttf | |
Courier\ New\ Bold=courbd.ttf | |
Courier\ New\ Bold\ Italic=courbi.ttf | |
Courier\ New\ Italic=couri.ttf |
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://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name))"> | |
<cfhttpparam type="header" name="content-type" value="application/x-www-form-urlencoded"> | |
<cfhttpparam type="url" name="oauth2_access_token" value="[access-token]"> | |
<cfhttpparam type="url" name="first-name" value="pritesh"> | |
<cfhttpparam type="url" name="last-name" value="patel"> | |
<cfhttpparam type="url" name="format" value="json"> | |
<cfhttpparam type="url" name="count" value="2"> | |
</cfhttp> | |
<cfset response = deserializeJSON(cfhttp.filecontent)> |
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
<cfparam name="url.param1" default="URL Parameter 1"> | |
<cfparam name="url.param2" default="URL Parameter 2"> | |
<cfscript> | |
function callme(){ | |
var url = "http://www.thecfguy.com"; | |
writedump([url,local.url]); | |
} | |
callme(); | |
writedump(url); | |
abort; |