Skip to content

Instantly share code, notes, and snippets.

@les2
les2 / gist:5454567
Created April 24, 2013 18:53
async api callback - there might be bugs
var asyncApi = asyncApi || (function(win) {
var asyncApi = function(globalName, queueName, createGlobal) {
var global = win[globalName];
if(!global && createGlobal) {
global = win[globalName] = {};
}
if(global) {
var queue = global[queueName] || [];
@les2
les2 / gist:3994662
Created November 1, 2012 16:10
grails eclipse scripts
wget https://github.com/lhotari/grails-eclipse-scripts/raw/master/scripts/DownloadSourcesAndJavadocs.groovy
wget https://github.com/lhotari/grails-eclipse-scripts/raw/master/scripts/StsLinkSourcesAndJavadocs.groovy
<profile>
<id>hsql-local</id>
<properties>
<jdbc.url>jdbc:hsqldb:file:C:/MY DIRECTORY/hsql/${db.name};shutdown=true</jdbc.url>
</properties>
</profile>
export MAVEN_OPTS='-Xmx256m -Xdebug -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n'
tarting httpd.exe with the args
C:\Programme\resin\httpd.exe -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=12345 -server a
causes Resin to start up correctly saying
how does this work?