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> | |
/** | |
* Convert a hex RGB triplet to HSL (hue, saturation, luminance). | |
* | |
* @param RGBTriplet Hex RGB triplet to convert to HSL triplet. | |
* @return Returns a comma delimited list of values. | |
* @author Matthew Walker | |
* @version 1, November 6, 2001 | |
* @author Roddy Bykov | |
* @version 2, June 6, 2025 |
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
package com.rodionbykov; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.security.KeyPair; | |
import java.security.Security; | |
import java.security.Signature; | |
import java.util.Arrays; | |
import org.bouncycastle.jce.provider.BouncyCastleProvider; | |
import org.bouncycastle.openssl.PEMReader; |
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
<html> | |
<body> | |
<form> | |
<select name="userfirstname"> | |
<option value="Anakin">Anakin</option> | |
<option value="Han">Han</option> | |
<option value="">ALL</option> | |
</select> | |
<input type="submit" /> |
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> | |
function drunkCalc(Numeric inputNumber){ | |
var result = 0; | |
WriteOutput(inputNumber); | |
if(inputNumber GT 1){ | |
if(inputNumber % 2 EQ 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
<!--- attempt 1: fail, this directive is affecting only characters in CFM template ---> | |
<cfprocessingdirective pageEncoding="utf-8" /> | |
<cfparam name="FORM.exampleInput" default="" /> | |
<cfparam name="FORM.anotherInput" default="" /> | |
<!--- attempt 2: not seem to have result ---> | |
<cfset SetEncoding("FORM", "utf-8") /> | |
<!--- attempt 3: not seem to have result ---> |
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 a = "2016-01-30T14:12:41Z" /> | |
<cfdump var="#a#" /> | |
<cfset b = ParseDateTime(a) /> | |
<cfdump var="#b#" /> | |
<cfset c = DateConvert("UTC2local", b) /> | |
<cfdump var="#c#" /> |
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
# File: nginx.conf | |
server { | |
listen 8000; | |
server_name localhost; | |
location / { | |
root c:/wwwroot; | |
index index.cfm index.html index.htm; | |
} |
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
# File: httpd.conf | |
ProxyPassReverse / http://localhost:8888/ |
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
# File: httpd.conf | |
ProxyPreserveHost On | |
ProxyPassReverse / ajp://localhost:8009/ | |
RewriteEngine On | |
RewriteRule ^(.+\.cf[cm])$ ajp://localhost:8009$1 [P] |
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
# File: httpd.conf | |
Include mod_jk.conf |
NewerOlder