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
Show hidden characters
{ | |
"build_systems": | |
[ | |
{ | |
"cmd": | |
[ | |
"box.exe" | |
], | |
"working_dir": "C:\\path\\to\\project", | |
"name": "CommandBox", |
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 Task for running cflint | |
* | |
* build/tasks/CFLint.cfc | |
* | |
*/ | |
component output="false" accessors="true" { | |
property name="currentBranch"; |
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 Task for running cflint | |
* | |
* build/tasks/CFLint.cfc | |
*/ | |
component output="false" accessors="true" { | |
/* | |
* Constructor |
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
#!/usr/local/bin/php | |
<?php | |
/** | |
* Pre-commit Subversion script. | |
* | |
* @author Omni Adams <omni@digitaldarkness.com> | |
*/ | |
/** |
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
component displayname="Application" { | |
// Set up an in-memory testing datasource | |
// You may need to install the H2 driver (or Apache Derby, or whatever) | |
this.datasources[ "testing" ] = { | |
class: 'org.h2.Driver', | |
connectionString: 'jdbc:h2:mem:testing;MODE=MySQL', | |
username = "sa" | |
}; |
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
# Need latest CommandBox 3.6 | |
# install cfconfig | |
install commandbox-cfconfig | |
# install Mura 6.2 | |
install id=https://github.com/blueriver/MuraCMS/archive/6.2.zip | |
# install git+https://github.com/blueriver/MuraCMS.git#6.2 | |
# Move contents to root folder since they get installed in MuraCMS directory |
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
component extends="coldbox.system.EventHandler" { | |
function myEvent(event,rc,prc,widget=false) { | |
prc.message = "Test from Coldbox event"; | |
if (arguments.widget) { | |
return renderView("main/myView"); | |
} | |
event.setView("main/myView"); |
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
$.datepicker._gotoToday = function(id) { | |
var target = $(id); | |
var inst = this._getInst(target[0]); | |
var date = new Date(); | |
this._setDate(inst,date); | |
this._hideDatepicker(); | |
} | |
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
void function afterConfigurationLoad(event,interceptData,buffer){ | |
//writeDump(controller.getConfigSettings()) | |
var basePath = getDirectoryFromPath(getCurrentTemplatePath()); | |
/* Check for custom configuration file. This should be ignrored */ | |
if (fileExists("#basePath#/CustomConfig.json.cfm")) { | |
var settingsJSON = fileRead("#basePath#/CustomConfig.json.cfm"); |
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
<cfparam name="form.snake_case" default=""> | |
<cfparam name="form.camel_case" default=""> | |
<cfparam name="form.upper_camel_case" default=""> | |
<cfscript> | |
if (len(form.snake_case)) { | |
form.camel_case = REReplace(form.snake_case, "_([a-zA-Z])", "\u\1", "all"); | |
form.upper_camel_case = REReplace(form.camel_case, "\b([a-zA-Z]+)", "\u\1", "all"); | |
} |