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 oZoneId = createObject( "java", "java.time.ZoneId")> | |
<cfset oInstant = createObject( "java", "java.time.Instant")> | |
<cfset oTextStyle = createObject( "java", "java.time.format.TextStyle")> | |
<cfset oLocale = createObject( "java", "java.util.Locale").init( getLocale() )> | |
<cfset qryTZ = queryNew( | |
"offset,zone,region,displayfull,displayfullstdo,displaynarrow,displaynarrowstdo,displayshort,displayshortstdo,displayfulloffset,displayshortoffset", | |
"Integer,VarChar,VarChar,VarChar,VarChar,VarChar,VarChar,VarChar,VarChar,VarChar,VarChar" | |
)> |
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
<!--- | |
http://teratech.com/is-lucee-cfml-now-better-than-adobe-coldfusion/ | |
---> | |
<cfscript> | |
data={ | |
boolean:true, | |
stringTrue:'true', | |
stringYes:'yes', | |
number:5, | |
stringFive:'5' |
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> | |
/** | |
* URI encoding per RFC 3986, which has treats the following as unreserved: ALPHA / DIGIT / "-" / "." / "_" / "~" | |
* @text Text to encode | |
* @returns URI encoded text | |
*/ | |
public function encodeRFC3986(required string text) { | |
// Requires CF10+ | |
Local.encoded = encodeForURL(arguments.text); | |
// Reverse encoding of tilde "~" |
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
<!--- | |
https://plus.google.com/+JustinCookie/posts/CSj9HVoRTcY | |
---> | |
<cfscript> | |
sFactory = CreateObject("java", "coldfusion.server.ServiceFactory"); | |
sFactory.mailSpoolService.stop()'; | |
sFactory.mailSpoolService.start(); | |
</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
<!--- | |
http://cflive.net/ | |
https://trycf.com/scratch-pad/gist/b53c961633fabec3634b7a68a88b700c | |
---> | |
<cfscript> | |
stAnswer = { | |
givenAnswer = "no" | |
}; | |
writeOutput(stAnswer.givenAnswer ?: "leeg"); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<playlist xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/" version="1"> | |
<title>Wiedergabeliste</title> | |
<trackList> | |
<track> | |
<location>dvb-t://frequency=506000:bandwidth=8</location> | |
<title>1-2-3.tv HD</title> | |
<extension application="http://www.videolan.org/vlc/playlist/0"> | |
<vlc:id>18</vlc:id> | |
<vlc:option>dvb-adapter=0</vlc:option> |
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
{ | |
"telemetry.enableTelemetry": false, | |
"telemetry.enableCrashReporter": false, | |
"editor.fontSize": 12, | |
"editor.fontLigatures": true, | |
"editor.fontFamily": "Fira Code", | |
"editor.cursorStyle": "line", | |
"editor.rulers": [ | |
80, | |
120 |
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 oJSOUP = CreateObject("java", "org.jsoup.Jsoup" )> | |
<cfset oJSOUPWL = CreateObject("java", "org.jsoup.safety.Whitelist" ).init()> | |
<cfdump var="#oJSOUP#" expand="false"> | |
<cfdump var="#oJSOUPWL#" expand="false"> | |
<cfdump var="#oJSOUPWL.relaxed()#" expand="false"> | |
<cfdump var="#oJsoup.clean('<a href="link.html"><img src="http://example.com/bild.gif"></a>', oJSOUPWL.relaxed().addAttributes("a", ["href", "class"] ).addAttributes("img", ["src", "class", "styles", "width", "height"] ).removeProtocols("a", "href", ["ftp", "http", "https", "mailto"]).removeProtocols("img", "src", ["http", "https"]) )#"> | |
<cfdump var="#oJsoup.clean('<a href="link.html"><img src="http://example.com/bild.gif"></a>', "http://example.com/", oJSOUPWL.relaxed().preserveRelativeLinks(true))#"> |
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
CommandBox:stmelfposy> utils normalize-line-endings *.txt --type windows | |
Confirm normalizing line endings for 179 files : y | |
ERROR (3.9.2+00826) | |
variable [NEWCONTENT] doesn't exist | |
C:\Users\bddoeble\.CommandBox\cfml\system\modules_app\utils-commands\commands\utils\normalize-line-endings.cfc: line 95 | |
93: } | |
94: | |
95: if ( content != newContent ) { |
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
{ | |
"extends": ["plugin:prettier/recommended"], | |
"rules": { | |
"newline-after-var": "error" | |
} | |
} |