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
// matches DD/3 Letter Month Abv/YYYY (01/Jan/2014) | |
[0-9]{1,2}/[a-zA-Z]{3}/[0-9]{4} |
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
// Application.cfc | |
function onApplicationStart() { | |
application.stripeApiKey = 'your key here'; | |
application.Stripe = createObject('component','stripe.Stripe').init(stripeApiKey=application.stripeApiKey); | |
return true; | |
} | |
//----------- |
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
plural check | |
($(this).val() == 1) ? "day" : "days") | |
class manupilation | |
$( "p" ).removeClass( "myClass noClass" ).addClass( "yourClass" ); | |
grab all selects without data-eventId = 21 and disable | |
$( "select[data-eventId!=21]" ).attr('disabled', false); |
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
datasource: | |
#application.configBean.getDatasource()# | |
init mura scope: | |
<cfset $=application.serviceFactory.getBean("MuraScope").init("SITEID")> | |
get a feed to show items with nav set to 0 and 1 | |
<cfset feed.setShowNavOnly(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
//get rid of all tags: | |
rereplacenocase(variable, "<[^<]*>","","all") | |
//get rid of image tag only: | |
rereplacenocase(variable, "<img[^<]*>","","all") | |
//get rid of two or more specific tags: | |
rereplacenocase(variable, "<(img|/?div|br)[^<]*>","","all") |