error: Unable to obtain JMS Connection Factory - assuming we are outside the container
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
//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); |
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
Show hidden characters
{ | |
// 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, |
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
import pyotr | |
from sleekxmpp.xmlstream.stanzabase import JID | |
import logging | |
log = logging.getLogger(__name__) | |
from plugin import BasePlugin | |
import tabs | |
from tabs import ConversationTab |
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
/target | |
/lib | |
/classes | |
/checkouts | |
pom.xml | |
*.jar | |
*.class | |
.lein-deps-sum | |
.lein-failures | |
.lein-plugins |
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
#!/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 |
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
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 |
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
#!/usr/bin/env python | |
"""linkode utility""" | |
from __future__ import print_function | |
import sys | |
import argparse | |
import requests | |
import webbrowser | |
def parse_args(): |
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
(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*))) |
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
-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. |