A compilation of all the links to slides and repositories used in workshops or shown by the speakers.
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
String getCarInsuranceName(Person person) { | |
String insuranceName = person?.getCar()?.getInsurance()?.getName() | |
return insuranceName?:"Unknown" | |
} |
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
package grails.converters.tests | |
import grails.converters.JSON | |
import org.codehaus.groovy.runtime.typehandling.GroovyCastException | |
import spock.lang.Specification | |
/** | |
* Created by Angel Ruiz. | |
*/ | |
class JSONObjectNullSpec extends Specification { |
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
/** | |
* Copyright 2012 Wordnik, Inc. | |
* | |
* 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 |
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
... | |
if (AAUtils.isAjaxAnywhereRequest(request) { | |
// Perform request forward | |
} else { | |
// Perform response redirect | |
} |
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
var x,y; | |
$(function () { | |
$('body').mousemove(function (e) { | |
x = e.pageX; | |
y = e.pageY; | |
}); | |
$(document).ajaxStart( | |
function (e) { |
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
<!-- Jul to Slf4j Bridge Listener --> | |
<listener> | |
<listener-class> | |
com.nerderg.ajaxanywhere.listener.JulToSlf4jBridgeListener | |
</listener-class> | |
</listener> |
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
<servlet> | |
<servlet-name>AAResourcesServlet</servlet-name> | |
<servlet-class>com.nerderg.ajaxanywhere.servlet.StaticResourcesServlet</servlet-class> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>AAResourcesServlet</servlet-name> | |
<url-pattern>/js/jquery-aa.js</url-pattern> | |
</servlet-mapping> |
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
<script src="<c:url value="/js/jquery/jquery-1.9.1.min.js"/>"></script> | |
<script src="<c:url value="/js/jquery-aa.js"/>"></script> |
NewerOlder