Skip to content

Instantly share code, notes, and snippets.

Richard Harrington richardharrington

Block or report user

Report or block richardharrington

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8353a3b1b671e8c12383
I have tried to make 2 war files (dev, not uberwars so far).
One app succeeded and the other didn't.
The one that failed, failed with the following error:
`Error: No web.xml found in the wunderboss-wildfly jar.`
There was nothing in the `:target-path` of the one that failed except the file
`<project root>/target/stale/extract-native.dependencies`, which had the following contents:
View gist:dcbbe57eb959af0fbbb2
I have tried to make 2 war files (dev, not uberwars so far).
One app succeeded and the other didn't.
The one that failed, failed with the following error:
`Error: No web.xml found in the wunderboss-wildfly jar.`
There was nothing in the `:target-path` of the one that failed except the file
`<project root>/target/stale/extract-native.dependencies`, which had the following contents:
View gist:85c7a7dbeced308bd06c
<jms-destinations>
<jms-queue name="ExpiryQueue">
<entry name="java:/jms/queue/ExpiryQueue"/>
</jms-queue>
<jms-queue name="DLQ">
<entry name="java:/jms/queue/DLQ"/>
</jms-queue>
<jms-queue name="/queue/q">
<entry name="java:/jms/queue/q"/>
</jms-queue>
View gist:a89b3613d95d67721ab4
This is the error that shows up in the cider-repl output:
DuplicateServiceException Service jboss.messaging.default.jms.queue./queue/q is already registered org.jboss.msc.service.ServiceRegistrationImpl.setInstance (ServiceRegistrationImpl.java:158)
And this is what shows up in another emacs window that pops up (it doesn't look related to me at first glance...):
Show: Clojure Java REPL Tooling Duplicates All (0 frames hidden)
@richardharrington
richardharrington / asyncComparison.es6
Last active Aug 29, 2015
comparisons of various async methods
View asyncComparison.es6
// This function fetches complete movie objects from imdb, like so:
// 1) It fetches a random word from a random word api,
// 2) It uses that word to make a search for movies on imdb, and
// 3) It uses the abbreviated search results to fetch complete
// movie objects from imdb
// Furthermore (to make things more interesting):
// 4) The final result displayed to the user will contain the results
View gist:545f816b447755bf236e
var assert = require('assert')
// Underscore and/or lo-dash are great
// utility libraries that abstract lots of cruft
// from javascript code. That said,
// there may be times when including a library
// isn't feasible in a project. Let's dig into
// some of the most valuable methods in the project
// and put together our own version.
@richardharrington
richardharrington / gist:5784897
Last active Dec 18, 2015
nodejitsu error trying to deploy 'draw'
View gist:5784897
Harrington-MacBook-Pro:draw richardharrington$ jitsu deploy
info: Welcome to Nodejitsu richardh
info: jitsu v0.12.11, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in app.js
WARN package.json draw@0.2.5-57 No repository field.
WARN package.json policyfile@0.0.4 No repository field.
WARN package.json policyfile@0.0.4 'repositories' (plural) Not supported.
WARN package.json Please pick one as the 'repository' field
@richardharrington
richardharrington / gist:5767783
Last active Dec 18, 2015
javascript hoisting
View gist:5767783
var bar = 10;
var foo = function(){
console.log(bar);
var bar = 12;
}
foo();
function fa(){
fu();
}
function fu(){
View gist:5695009
arrington-MacBook-Pro:draw richardharrington$ jitsu deploy
info: Welcome to Nodejitsu richardh
info: jitsu v0.12.11, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in app.js
WARN package.json draw@0.2.5-58 No repository field.
WARN package.json policyfile@0.0.4 No repository field.
WARN package.json policyfile@0.0.4 'repositories' (plural) Not supported.
WARN package.json Please pick one as the 'repository' field
View gist:5671905
unknown20c9d07e5c0f:draw-dev richardharrington$ jitsu deploy
info: Welcome to Nodejitsu richardh
info: jitsu v0.11.3, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in app.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /Users/richardharrington/Dropbox/git/draw/draw-dev/package.json
data:
You can’t perform that action at this time.