CFML Slack
January 14, 2016
Unrelated messages omitted for brevity.
Punctuation and spelling not touched.
tbrown [11:14 AM]
# CommandBox | |
alias bss="box server toggle" | |
alias bsa="box server stop --all" | |
alias bfa="box server forget --all --force" | |
alias bsfa="box server stop --all --forget" |
<cfscript> | |
function dumpOutput(filters = {}) { | |
for (var key in arguments.filters) { | |
writeDump({ | |
key = key, | |
value = arguments.filters[key], | |
struct = arguments.filters | |
}); | |
} |
<cfscript> | |
function dumpOutput(filters = {}) { | |
arguments.filters.each(function(key, value, struct) { | |
writeDump(arguments); | |
}); | |
} | |
function dumpByPassingArguments() { | |
dumpOutput(filters = arguments); |
component extends='cfselenium.BaseSpec' { | |
function beforeAll() { | |
super.beforeAll('http://#CGI.HTTP_HOST#/'); | |
} | |
function afterAll() { | |
super.afterAll(); | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Quick Selection Box"> | |
<script src="https://code.jquery.com/jquery.min.js"></script> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> |
Borrowed heavily from Laracasts.com. Go give Jeffrey money and learn a ton!
To learn Test-driven Development (TDD) with simple examples.
<?xml version="1.0" encoding="utf-8"?> | |
<project basedir="." default="test" name="CFML CI"> | |
<!-- | |
The CFML CI template project. | |
For integration instructions, see the Github project page: | |
https://github.com/coldfumonkeh/cfml-ci | |
--> |
component extends='coldbox.system.web.context.RequestContextDecorator' { | |
string function getHTTPMethod() { | |
return getRequestContext().getValue('_method', cgi.REQUEST_METHOD); | |
} | |
} |
import sublime, sublime_plugin, json | |
import CFML | |
class DumpCfmlSettings(sublime_plugin.WindowCommand): | |
def run(self): | |
projects = list(CFML.src.cfcs.cfcs.projects.keys()) | |
self.window.show_quick_panel(projects, lambda i: self.types(projects[i])) | |
def types(self, project): | |
dumpTypes = ["Variable Names", "Indexed Files"] |