Skip to content

Instantly share code, notes, and snippets.

<cfscript>
function showDifference() {
var localVar = "I am var"; // Local only to this function
variables.globalVar = "I am variables"; // Accessible outside the function
}
showDifference();
</cfscript>
<cfscript>
function showDifference() {
var localVar = "I am var"; // Local only to this function
variables.globalVar = "I am variables"; // Accessible outside the function
}
showDifference();
</cfscript>
<cfscript>
function String showName(){
local.name ="vijay";
}
</cfscript>
<cfscript>
// Define the encryption key
var key = "your-secret-key";
// Encrypted string
var encryptedString = "0xFpIgUsyk8x8uGKIAmr/wFqTICab4FdFQnKRf8Gm/LbGpUOU2uhkw61oxoaOGY0";
var token = Decrypt(encryptedString, "dDF3/2HGKu7m7VTq34Eg6g==
<cfscript>
function setLeadCode(co){
return replace(REReplace(left(co,6),"[^0-9A-Za-z|]","","all")&'25',' ','')&TimeFormat(now(),'L');
}
//writeOutput(setLeadCode('eleventh & gather'));
function fixName(nm,idx){
<cfscript>
// Define the encryption key
var key = "your-secret-key";
// Encrypted string
var encryptedString = "B3E0C3DA14DEB09B616CA738AA4033830C10F125B8C4226057F90CA7758B03493AB6780FC4CC723A";
var token = Decrypt(encryptedString, "1EA4ED8BA1F6AA08CA27BA689FF64869", "BLOWFISH", "hex");
<cfscript>
function setLeadCode(co){
return replace(REReplace(co,"[^0-9A-Za-z|]","","all")&'25',' ','')&TimeFormat(now(),'L');
}
writeOutput(setLeadCode('eleventh & gather'));
</cfscript>
<cfscript>
function setLeadCode(co){
return replace(REReplace(co,"[^0-9A-Za-z|]","","all")&'25',' ','')&TimeFormat(now(),'L');
}
writeOutput(setLeadCode('eleventh & gather'));
writeOutput(TimeFormat(now(),'L'));
</cfscript>
<cfscript>
// Define the encryption key
var key = "your-secret-key";
// Encrypted string
var encryptedString = "00BBCE47C367526FE7B19BD5DA50489A7E6AD6B88752F565C3FD6CA5BAB25B9877C461BA44C54074";
var token = Decrypt(encryptedString, "rNQkUxfikwHOmX1Eo8kBmQ==", "BLOWFISH", "hex");
<cfscript>
// Define the encryption key
var key = "your-secret-key";
// Encrypted string
var encryptedString = "00BBCE47C367526FE7B19BD5DA50489A7E6AD6B88752F565C3FD6CA5BAB25B9877C461BA44C54074";
var token = Decrypt(encryptedString, "LmlsdzZf6VzurgSYpHWb7A==", "BLOWFISH", "hex");