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://prex-eshop-faure.w3line.net/" | |
method="get" | |
result="_result"> | |
<cfhttpparam type="header" name="User-Agent" value="Mozilla/5.0 (Windows NT 10.0; Win64; x64)"> | |
<cfhttpparam type="header" name="Accept" value="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"> | |
<cfhttpparam type="header" name="Accept-Language" value="en-US,en;q=0.5"> | |
<cfhttpparam type="header" name="Referer" value="https://www.google.com/"> | |
</cfhttp> |
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
<cffunction name="encryptcfmx_compat" access="public" returntype="string" output="true"> | |
<cfargument name="input" type="string" required="true"> | |
<cfargument name="key" type="string" required="true"> | |
<cfargument name="alg" type="string" > | |
<cfargument name="format" type="string" > | |
<!--- Inisialisasi LFSR dan konstanta bit ---> | |
<cfset lfsr_a = inputBaseN("13579bdf", 16)> | |
<cfset lfsr_b = inputBaseN("2468ace0", 16)> | |
<cfset lfsr_c = inputBaseN("fdb97531", 16)> |
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 cellHtml = '<td id="td-7008713" class="class-matrix-cell comp-enrolled tooltip-slow" style="background-color:F9EDC7;" > </td>'> | |
<cfset bgColor =""> | |
<cfset stylePos = REFindNoCase("background-color\s*:\s*#[A-Fa-f0-9]{3,6}", cellHtml)> | |
<cfif stylePos GT 0> | |
<cfset matchedStr = Mid(cellHtml, stylePos, 30)> | |
<cfset colorPos = REFindNoCase("#[A-Fa-f0-9]{3,6}", matchedStr)> | |
<cfif colorPos GT 0> | |
<cfset bgColor = Mid(matchedStr, colorPos, 7)> | |
</cfif> | |
</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
<cfset brad = "wood"> | |
<cfparam name="foo[ brad ]" default="bar"> |
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 brad = "wood"> | |
<cfparam name="foo[ brad ]" default="bar"> |
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 brad = "wood"> | |
<cfparam name="foo[ brad ]" default="bar"> |
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> | |
CurrentMonth = MonthAsString(Month(Now())); | |
NextMonth = MonthAsString(Month(DateAdd('m', 1, Now()))); | |
CurrentMonthFrom = DateFormat(Now(), 'yyyy-mm-01'); | |
NextMonthFrom = DateFormat(DateAdd('m', 1, CurrentFrom), 'yyyy-mm-01'); | |
CurrentMonthTo = DateAdd('d', -1, DateAdd('m', 1, CurrentMonthFrom)); | |
NextNextMonthTo = NextMonthFrom = DateFormat(DateAdd('m', 2, CurrentFrom), 'yyyy-mm-01'); | |
NextMonthTo = DateFormat(DateAdd('m', 1, NextNextMonthTo), 'yyyy-mm-01'); | |
writeDump(CurrentMonth); |
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 local.groupedData = { | |
"Appraisal Co": { | |
"Approved": "", | |
"Created By Role": "Appraisal Co", | |
"Paid": "", | |
"Payee": 2522.0000, | |
"expenseId": [73974906, 73978365, 73978366, 73978368, 73978369], | |
"expensesObj": "payee_role_display" | |
}, | |
"BPO Company": { |
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> | |
writedump(); | |
</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
<!--- | |
# ColdFusion Challenge: Calculate Business Days | |
## Goal | |
Implement a function called `businessDaysBetween` | |
that calculates the number of working days between two dates, | |
excluding weekends and holidays. | |
## Function Specification |
NewerOlder