Skip to content

Instantly share code, notes, and snippets.

@use 'button';
@use 'spinner';
@use 'frontend/css/tooltip';
html {
scroll-behavior: smooth;
}
.wp-block-formello-form {
<cfscript>
httpService = new http();
httpService.setMethod( "GET" );
httpService.setCharset( "utf-8" );
httpService.setUrl( "https://wikipedia.org" );
httpService.setRedirect( true );
httpService.setUserAgent( "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.7 (KHTML, like Gecko) Chrome/5.0.391.0 Safari/533.7" );
@Tropicalista
Tropicalista / gist:25ef1499ea85058712f7
Created November 28, 2015 23:10
Accented chars converted in coldfusion
<cfscript>
k = "á,é,í,ó,ú,ý,à,è,ì,ò,ù,â,ê,î,ô,û,ã,ñ,õ,ä,ë,ï,ö,ü,ÿ,À,È,Ì,Ò,Ù,Á,É,Í,Ó,Ú,Ý,Â,Ê,Î,Ô,Û,Ã,Ñ,Õ,Ä,Ë,Ï,Ö,Ü";
k = createObject( 'java', 'java.text.Normalizer' ).normalize( k, createObject( 'java', 'java.text.Normalizer$Form' ).valueOf('NFD') ).replaceAll('\p{InCombiningDiacriticalMarks}+','').replaceAll('[^\p{ASCII}]+','');
writeOutput(k);
</cfscript>