Skip to content

Instantly share code, notes, and snippets.

@obxpete
obxpete / cfcomponent.sublime-snippet
Last active July 27, 2017 14:22 — forked from guitrspaz/cfcomponent.sublime-snippet
Creates a blank cfscript component
<snippet>
<content><![CDATA[/**
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name}
* @hint: ${1}
* @author: $TM_FULLNAME ($TM_EMAIL)
* @copyright: $TM_ORGANIZATION_NAME
* @created: ${2}
* @modified: ${2}
*/
@obxpete
obxpete / cfdao.returnID.sublime-snippet
Last active July 26, 2017 14:45 — forked from guitrspaz/cfdao.returnID.sublime-snippet
Creates a query function to return the resulting ID or other numeric value
<snippet>
<content><![CDATA[/**
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name}.${1:functionName}
* @hint: ${2:Description}
* @returns: Numeric record ID
* @date: ${3:Date}
* @author: $TM_FULLNAME ($TM_EMAIL)
*/
${4:public} Numeric function ${1:functionName}(
${5}
@obxpete
obxpete / cfdao.returnQuery.sublime-snippet
Created July 25, 2017 17:56 — forked from guitrspaz/cfdao.returnQuery.sublime-snippet
Creates a query function that returns the query result
<snippet>
<content><![CDATA[/**
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name}.${1:functionName}
* @hint: ${2:Description}
* @returns: Query
* @date: ${3:Date}
* @author: $TM_FULLNAME ($TM_EMAIL)
*/
${4:public} Query function ${1:functionName}(
${7}
@obxpete
obxpete / cfdao.returnRecordFound.sublime-snippet
Last active July 26, 2017 14:23 — forked from guitrspaz/cfdao.returnRecordFound.sublime-snippet
Query function to return a boolean value. Example use case: find if item exists.
<snippet>
<content><![CDATA[/**
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name}.${1:functionName}
* @hint: ${2:Description}
* @returns: Boolean for whether a record exists
* @date: ${3:Date}
* @author: $TM_FULLNAME ($TM_EMAIL)
*/
${4:public} Boolean function ${1:functionName}(
${5}
@obxpete
obxpete / cfsvc-function.sublime-snippet
Created July 25, 2017 17:54 — forked from guitrspaz/cfsvc-function.sublime-snippet
Creates a service-level function
<snippet>
<content><![CDATA[/**
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name}.${1:functionName}
* @hint: ${2:Description}
* @returns: ${3:Any}
* @date: ${4:Date}
* @author: $TM_FULLNAME ($TM_EMAIL)
*/
${5:public} ${3:Any} function ${1:functionName}(
${7}
@obxpete
obxpete / listenerFunction.sublime-snippet
Last active August 24, 2017 14:22 — forked from guitrspaz/listenerFunction.sublime-snippet
Creates a listener function, which contains defined variables for event and session data.
<snippet>
<content><![CDATA[/**
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name}.${1:functionName}
* @hint: ${2:Description}
* @returns: ${3:Any}
* @date: ${4:Date}
* @author: $TM_FULLNAME ($TM_EMAIL)
*/
${5:public} ${3:Any} function ${1:functionName}(
required MachII.Framework.Event event
@obxpete
obxpete / selectCFComment.sublime-snippet
Created July 25, 2017 17:54 — forked from guitrspaz/selectCFComment.sublime-snippet
Creates a CF tag comment from a selection
<snippet>
<content><![CDATA[<!--- $TM_INITIALS: $SELECTION --->]]></content>
</snippet>
<snippet>
<content><![CDATA[/**
* $SELECTION
*/
]]></content>
</snippet>
@obxpete
obxpete / 0_reuse_code.js
Created December 9, 2016 15:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console