error: Unable to obtain JMS Connection Factory - assuming we are outside the container
:
//taken from es5shim | |
(function () { | |
if (!Function.prototype.bind) { | |
Function.prototype.bind = function bind(that) { // .length is 1 | |
// 1. Let Target be the this value. | |
var target = this; | |
// 2. If IsCallable(Target) is false, throw a TypeError exception. | |
if (typeof target != "function") { | |
throw new TypeError("Function.prototype.bind called on incompatible " + target); |
{ | |
// Settings | |
"passfail" : false, // Stop on first error. | |
"maxerr" : 100, // Maximum error before stopping. | |
// Predefined globals whom JSHint will ignore. | |
"browser" : false, // Standard browser globals e.g. `window`, `document`. | |
"node" : false, |
import pyotr | |
from sleekxmpp.xmlstream.stanzabase import JID | |
import logging | |
log = logging.getLogger(__name__) | |
from plugin import BasePlugin | |
import tabs | |
from tabs import ConversationTab |
/target | |
/lib | |
/classes | |
/checkouts | |
pom.xml | |
*.jar | |
*.class | |
.lein-deps-sum | |
.lein-failures | |
.lein-plugins |
#!/usr/bin/env bash | |
# | |
# JBoss standalone control script | |
# | |
# chkconfig: - 80 20 | |
# description: JBoss AS Standalone | |
# processname: standalone | |
# pidfile: /var/run/jboss-as/jboss-as-standalone.pid | |
# config: /etc/jboss-as/jboss-as.conf |
lein immutant new breaker | |
cd breaker | |
cat src/immutant/init.clj | |
echo "(ns immutant.init (:require [immutant.messaging :as msg]))" > src/immutant/init.clj | |
echo '(msg/start "/queue/my-queue")' >> src/immutant/init.clj | |
echo '(msg/respond "/queue/my-queue" identity)' >> src/immutant/init.clj | |
for i in $(seq 1 10); do lein immutant deploy -n app-$i; done | |
lein immutant run |
#!/usr/bin/env python | |
"""linkode utility""" | |
from __future__ import print_function | |
import sys | |
import argparse | |
import requests | |
import webbrowser | |
def parse_args(): |
(ns logerror.core | |
(:require | |
[immutant.cache :as cache] | |
[clojure.tools.logging :as log])) | |
(println #'clojure.tools.logging/*logger-factory*) | |
(try | |
(def my-cache (cache/create "cache")) | |
(catch Exception e | |
(println #'clojure.tools.logging/*logger-factory*))) |
-file("examples/use_macros.fn", 1). | |
-module(use_macros). | |
-export([main/0]). | |
-file("examples/ms.hrl", 1). | |
what_am_i() -> a_function_in_the_macro_file. |