Skip to content

Instantly share code, notes, and snippets.

@dashorst
dashorst / wicket-rfc-0001.txt
Last active February 15, 2021 06:23
Apache Wicket is an open source Java component oriented web application framework. This document specifies modernization to the way Wicket handles PageParameters in the processing of requests and the lifecycle of Page components, based on the specifications done for JAX-RS (JSR-311 and JSR-339).
Please see https://github.com/dashorst/wicket-rfcs/blob/master/wicket-rfc-0001.txt for the RFC.
Please comment either inline in the github repository, or reply to the message
thread on the dev@wicket.apache.org mailing list.
@uehaj
uehaj / static typed markup builder
Created January 18, 2013 08:44
@DelegatesToを使った静的型チェックされるMarkupBuilderのようなものです。
import groovy.transform.*
class HtmlBuilder {
def html(@DelegatesTo(Html) Closure c) {
c.delegate = new Html()
println "<html>"; c(); println "</html>"
}
}
class Html {
def head(@DelegatesTo(Head) Closure c) {
c.delegate = new Head()
@emmanuelbernard
emmanuelbernard / gist:1108844
Created July 27, 2011 07:19
Do work if changes are present
#!/bin/bash
SHA_REMOTE=`git rev-parse upstream/production`
SHA_LOCAL=`git rev-parse production`
if [ "$SHA_LOCAL" != "$SHA_REMOTE" ]; then
echo "different"
else
echo "same"
fi