CFML Slack
January 14, 2016
Unrelated messages omitted for brevity.
Punctuation and spelling not touched.
tbrown [11:14 AM]
In some cases the IC might determine that a PM meeting for the incident isn't needed.
If the IC decides to waive the meeting please replace the Meeting section with a
note indicating the meeting has been waived (example: Meeting waived: Paul Mooring)
| var HEADER_NAME = 'MyApp-Handle-Errors-Generically'; | |
| var specificallyHandleInProgress = false; | |
| angular.module('myApp').factory('RequestsErrorHandler', ['$q', function($q) { | |
| return { | |
| // --- The user's API for claiming responsiblity for requests --- | |
| specificallyHandled: function(specificallyHandledBlock) { | |
| specificallyHandleInProgress = true; | |
| try { | |
| return specificallyHandledBlock(); |
| angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) { | |
| $httpProvider.responseInterceptors.push([ | |
| '$q', '$templateCache', 'activeProfile', | |
| function($q, $templateCache, activeProfile) { | |
| // Keep track which HTML templates have already been modified. | |
| var modifiedTemplates = {}; | |
| // Tests if there are any keep/omit attributes. | |
| var HAS_FLAGS_EXP = /data-(keep|omit)/; |
| String clusterName = "testcluster"; | |
| String indexName = "textindex"; | |
| String suggestionName = "suggestion"; | |
| NodeBuilder nodeBuilder = NodeBuilder.nodeBuilder().clusterName(clusterName).client(true); | |
| Node node = nodeBuilder.node(); | |
| try { | |
| Client client = node.client(); | |
| CompletionSuggestionBuilder completionSuggestionBuilder = new CompletionSuggestionBuilder(suggestionName); | |
| SuggestResponse suggestionRes = client.prepareSuggest(indexName).setSuggestText("tes").addSuggestion(completionSuggestionBuilder.field("suggest")).execute().actionGet(); | |
| Suggest suggest = suggestionRes.getSuggest(); |
| {:user {:dependencies [[org.clojure/tools.namespace "0.2.3"] | |
| [spyscope "0.1.3"] | |
| [criterium "0.4.1"]] | |
| :injections [(require '(clojure.tools.namespace repl find)) | |
| ; try/catch to workaround an issue where `lein repl` outside a project dir | |
| ; will not load reader literal definitions correctly: | |
| (try (require 'spyscope.core) | |
| (catch RuntimeException e))] | |
| :plugins [[lein-pprint "1.1.1"] | |
| [lein-beanstalk "0.2.6"] |
| // installed Clojure packages: | |
| // | |
| // * BracketHighlighter | |
| // * lispindent | |
| // * SublimeREPL | |
| // * sublime-paredit | |
| { | |
| "word_separators": "/\\()\"',;!@$%^&|+=[]{}`~?", | |
| "paredit_enabled": true, |
| <!--- | |
| Copyright 2012 Mark Mandel | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
| /** | |
| ClassViewer.cfc | |
| @hint An almost pure CFML implementation of ClassViewer.class (see http://adamcameroncoldfusion.blogspot.co.uk/2012/08/classviewerjava.html). | |
| @description | |
| */ | |
| component { | |
| // these are just for formatting the output | |
| variables._NL = createObject("java", "java.lang.System").getProperty("line.separator"); | |
| variables._INDENT = " "; |
| import java.util.*; | |
| import java.lang.reflect.*; | |
| public class ClassViewer | |
| { | |
| private static final String nl = System.getProperty("line.separator"); | |
| public static final String viewClassByName(String name) | |
| throws Exception | |
| { |