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 { | |
/** | |
* Swaps out WireBox mappings for corresponding mocks during a callback. | |
* mappings = { "apiClient" = mockApiClient } | |
*/ | |
function whileSwapped( struct mappings = {}, any callback, boolean verifyMappingExists = true ) { | |
var binder = getWireBox().getBinder(); | |
var originalMappings = {}; | |
mappings.each( function( mapping, component ) { |
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
/** | |
* Description of task | |
*/ | |
component { | |
property name="wirebox" inject="wirebox"; | |
function run( | |
string searchQuery, | |
string newEngine, |
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
{"lastUpload":"2019-11-20T05:12:09.109Z","extensionVersion":"v3.4.3"} |
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
<template> | |
<manage-lists v-model="items"> | |
<template scope="{ item: user }"> | |
{{ user.firstName }} {{ user.lastName }} | |
</template> | |
</manage-lists> | |
</template> | |
<script> | |
export default { |
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
<template> | |
<div> | |
<radio-set | |
v-model="selectedValue" | |
:options="options" | |
></radio-set> | |
<select-box | |
v-model="selectedValue" | |
:options="options" | |
></select-box> |
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 { | |
function index( event, rc, prc ) { | |
var criteria = event.valueExists( "active" ) ? { active = rc.active } : {}; | |
var users = getInstance( "User" ).findAllWhere( criteria ) | |
.map( function( user ) { | |
return user.getMemento(); | |
} ); | |
event.renderData( data = users, format = "json" ); | |
} |
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
// config/ColdBox.cfc | |
component { | |
function configure() { | |
coldbox.viewsHelper = "includes/helpers/ViewHelper.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
alias github=GitHub | |
function GitHub() { | |
if [ ! -d .git ] ; then | |
echo "ERROR: This isn't a git directory" && return false; | |
fi | |
git_url=`git config --get remote.origin.url` | |
if [[ $git_url == [email protected]* ]] ; then |
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
<!--- clearMapping ---> | |
<cffunction name="clearMapping" output="false" access="public" returntype="any" hint="Clear a mapping by name if it exists" colddoc:generic="struct"> | |
<cfargument name="name" required="true" hint="The name of the mapping to retrieve"/> | |
<cfset structDelete( instance.mappings, name ) /> | |
<cfreturn this> | |
</cffunction> | |
<!--- Usage ---> | |
<!--- <cfset application.wirebox.getBinder().clearMapping( "mappingName" ) /> ---> |
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
2017-02-17T09:37:44Z @guustnieuwenhuis @ are the lucee environment variables implemented in the docker images? | |
2017-02-17T09:38:07Z @bdw429s @guustnieuwenhuis Can you explain what you mean? | |
2017-02-17T09:38:59Z @guustnieuwenhuis lucee has environment vraiebles like `lucee.preserve.case` %28full list: <https://docs.google.com/spreadsheets/d/10s-nn_FsoSD_RiLwjYZICacCoC386SjkEGT3pOfBJVU/edit#gid=0>%29 | |
2017-02-17T09:39:36Z @guustnieuwenhuis I’m wondering if I can set `lucee.preserve.case` in my docker compose file | |
2017-02-17T09:40:05Z @guustnieuwenhuis like with `SMTP_SERVER` for example | |
2017-02-17T09:40:22Z @bdw429s Funny, I was about to post about a few of those. I don%27t know enough about Docker, but I assume you can set whatever props you want when starting the container. | |
2017-02-17T09:47:09Z @bdw429s So a quick note to everyone who was talking to me about how to install Extensions the other day. Micha reminded me of some java system properties that managed to not make it into the docs anywhere. One of th |
NewerOlder