Skip to content

Instantly share code, notes, and snippets.

Avatar

TryCF.com trycf

View GitHub Profile
View trycf-gist-1614225610693-3c7ccf71-3a3e-1d1d-ab2c-ba51b2980a10.cfm
<cfscript>
environments = {
local = "^(local)",
development = "-dev.cordonbleu.edu",
acceptance = "-acc.cordonbleu.edu",
staging = "-staging.cordonbleu.edu",
datawarehouse = "-dw.cordonbleu.edu",
training = "-training.cordonbleu.edu",
asterix = "-asterix.cordonbleu.edu",
production = "cordonbleu.edu",
View trycf-gist-1614225610693-3c7ccf71-3a3e-1d1d-ab2c-ba51b2980a10.cfm
<cfscript>
environments = {
local = "^(local)",
development = "-dev.cordonbleu.edu",
acceptance = "-acc.cordonbleu.edu",
staging = "-staging.cordonbleu.edu",
datawarehouse = "-dw.cordonbleu.edu",
training = "-training.cordonbleu.edu",
asterix = "-asterix.cordonbleu.edu",
production = "cordonbleu.edu",
View trycf-gist-1614199006634-77626cd4-2ae3-7805-89c2-fcc0be8c813a.cfm
<cfoutput>
<cfset var vReturn = "">
<cfset var s = '9781111111111'>
<cfset var i = 0>
<cfloop from="1" to="#len(s)#" index="i">
<cfif listFind("1,5,8,11,14,17", i)>
<cfset vReturn = vReturn & "/">
</cfif>
<cfset vReturn = vReturn & mid(s, i, 1)>
View trycf-gist-1614199006634-77626cd4-2ae3-7805-89c2-fcc0be8c813a.cfm
<cfoutput>
<cfset var vReturn = "">
<cfset var s = '9781111111111'>
<cfset var i = 0>
<cfloop from="1" to="#len(s)#" index="i">
<cfif listFind("1,5,8,11,14,17", i)>
<cfset vReturn = vReturn & "/">
</cfif>
<cfset vReturn = vReturn & mid(s, i, 1)>
View trycf-gist-1614109958781-0fcc6a50-08be-f039-c3c6-ceca430e517a.cfm
<cfscript>
//component output=false hint="appconfig.cfc, downloads App Config key/value pairs"
//{
public function logthis(type, text)
{
// Send request
appConfigReq = new http();
appConfigReq.seturl("https://rtg-notification.azurewebsites.net/routes/api/system");
appConfigReq.setMethod("POST");
View trycf-gist-1614109958781-0fcc6a50-08be-f039-c3c6-ceca430e517a.cfm
<cfscript>
//component output=false hint="appconfig.cfc, downloads App Config key/value pairs"
//{
public function logthis(type, text)
{
// Send request
appConfigReq = new http();
appConfigReq.seturl("https://rtg-notification.azurewebsites.net/routes/api/system");
appConfigReq.setMethod("POST");
View trycf-gist-1614181179648-048c3656-5d51-3bed-6b86-3c6cdf6607ea.cfm
<cfscript>
<!-- == dump-begin xm == format: modern !-->
<div id="-lucee-dump-xm" class="-lucee-dump modern"><style>
.-lucee-dump.modern .nowrap { white-space: nowrap; }
.-lucee-dump.modern .bold { font-weight: bold; }
.-lucee-dump.modern .nobold { font-weight: normal; }
.-lucee-dump.modern .pointer { cursor: pointer; }
.-lucee-dump.modern .query-reset {background: url(data:image/gif;base64,R0lGODlhCQAJAIABAAAAAP///yH5BAEAAAEALAAAAAAJAAkAAAIRhI+hG7bwoJINIktzjizeUwAAOw==) no-repeat; height:18px; background-position:2px 4px; background-color: #969;}.-lucee-dump.modern .border {border: 1px solid #000; padding: 0.2em;}.-lucee-dump.modern .table-dump {font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 11px; color: #000; border-spacing: 1px; border-collapse:separate;}.-lucee-dump.modern .border.rlabel {margin: 1px 1px 0px 1px; vertical-align: top; text-align: left;}.-lucee-dump.modern .bgd-query { background-color: #c9c; } .-lucee-dump.modern .bgl-query { background-color:
View trycf-gist-1614179142467-21dcb28b-163a-47af-a902-1b0f010e9052.cfm
<cfscript>
t = "test_AUTHORISATION_1::LBC-ARGUS:8313842560770001:10100:EUR:AUTHORISATION:true";
writedump();
</cfscript>
View trycf-gist-1614178352243-1767ac80-1c30-fd00-e5bf-518758a5aadc.cfm
<cfscript>
var itemRow = [];
for( i=1; i <=29; i=i+1 ){
itemRow[j] = '123';
writeDump(itemRow);
}
View trycf-gist-1614178352243-1767ac80-1c30-fd00-e5bf-518758a5aadc.cfm
<cfscript>
var itemRow = [];
for( i=1; i <=29; i=i+1 ){
itemRow[j] = '123';
writeDump(itemRow);
}