This file contains 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="qrystringToStruct" returntype="any"> | |
<cfargument name="str" required="true" default=""> | |
<cfscript> | |
myStruct = {}; | |
for(i=1; i LTE listLen(arguments.str,'&');i=i+1) { | |
structInsert(myStruct, i, listGetAt(arguments.str,i,'&')); | |
} | |
</cfscript> | |
<cfreturn myStruct> | |
</cffunction> |
This file contains 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>// 本の詳細情報を生成する関数 | |
public struct function createBookDetails(numeric pageCount, string language, string isbn) { | |
var bookDetails = StructNew("Ordered"); | |
bookDetails["pageCount"] = arguments.pageCount; | |
bookDetails["language"] = arguments.language; | |
bookDetails["isbn"] = arguments.isbn; | |
var metadata = { | |
pageCount: "integer", | |
language: "string", | |
isbn: "string" |
This file contains 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>// 本の詳細情報を生成する関数 | |
public struct function createBookDetails(numeric pageCount, string language, string isbn) { | |
var bookDetails = StructNew("Ordered"); | |
bookDetails["pageCount"] = arguments.pageCount; | |
bookDetails["language"] = arguments.language; | |
bookDetails["isbn"] = arguments.isbn; | |
var metadata = { | |
pageCount: "integer", | |
language: "string", | |
isbn: "string" |
This file contains 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> | |
doc="Iyashidome4.0-0001controller" | |
writeOutput(doc & #chr(13)##chr(10)#) | |
h = Hash(doc,"sha-1") | |
writeOutput(h) | |
b= binaryEncode(h,"base64") | |
writeOutput(b) | |
</cfscript> |
This file contains 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> | |
// JSONとしてプロパティを返すメソッド | |
public struct function toJson() { | |
var jsonStruct = StructNew("Ordered"); | |
jsonStruct["startingDayOfTheWeek"] = 1; | |
jsonStruct["houteiKyujituJidoFurikae"] = true; | |
jsonStruct["houteiKyujituJidoFurikaeStartingDay"] = 2; | |
jsonStruct.setMetadata(metadata); |
This file contains 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
<cfoutput> | |
<cfscript> | |
cfloop( | |
from=1, | |
to=8, | |
index="DirectoryName" | |
){ | |
#DirectoryName#<br/> | |
} | |
</cfscript> |
This file contains 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 url.name = "san"> | |
<Cfset form.name = "sai"> | |
<cfdump var="#name#" /> | |
<cfset structk = {name:"santhosh",age:"24"}/> | |
<cfset structj = structCopy(structk) /> | |
<cfdump var="#structk#"/> | |
<cfdump var="#structj#"/> | |
<cfset structj.name="saikiran" /> | |
<cfdump var="after" /> |
This file contains 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
<div class="div"> | |
<div class="div-2"> | |
<div class="div-3"> | |
<div class="div-4"> | |
<img | |
loading="lazy" | |
src="https://cdn.builder.io/api/v1/image/assets/TEMP/b835ca88dbbaa9400b3e4e46d643e82d85d9d5dccd5d4d371ccc784599e2ff0f?" | |
class="img" | |
/> | |
<img |
This file contains 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> | |
x = [ | |
{ | |
id: {"$oid":123} | |
,aa: 1 | |
,bb: 2 | |
,"timestamp": "2024-07-16T21:07:11.739Z" | |
}, | |
{ |
This file contains 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> | |
IntStream = createOBject( 'java', 'java.util.stream.IntStream' ); | |
dump( IntStream.of( [1, 2, 3, 4, 5] ) ) | |
</cfscript> |
NewerOlder