This file contains hidden or 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
| /* scala template | |
| @import com.example.Document | |
| @(doc: Document) | |
| <h1>Hello @doc.getDocumentTitle !</h1> | |
| */ | |
| /* compiles to*/ | |
| package scalatests.html |
This file contains hidden or 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
| <!DOCTYPE HTML> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title></title> | |
| <meta name="description" content=""> |
This file contains hidden or 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
| add(new TransparentWebMarkupContainer("body") { | |
| @Override | |
| protected void onComponentTag(ComponentTag tag) { | |
| tag.append("class", getBodyClass(), " "); | |
| } | |
| }); | |
| /* html | |
| <body class="foo" wicket:id="body"> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
| ... | |
| </html> |
This file contains hidden or 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 static de.agilecoders.wicket.util.JQuery.$; | |
| @Override | |
| public void renderHead(IHeaderResponse response) { | |
| response.render($(this).chain("modal").asDomReadyScript()); | |
| } |
This file contains hidden or 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
| <resource> | |
| <filtering>true</filtering> | |
| <directory>src/main/resources</directory> | |
| <includes> | |
| <include>**/*.xml</include> | |
| <include>**/*.properties</include> | |
| </includes> | |
| </resource> | |
| <resource> | |
| <filtering>false</filtering> |
This file contains hidden or 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
| ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor(); | |
| scheduler.scheduleAtFixedRate(new Runnable() { | |
| @Override | |
| public void run() { | |
| try { | |
| // do some work | |
| } catch (Exception e) { | |
| //log stuff |
This file contains hidden or 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
| <wicket:panel> | |
| <h3 wicket:id="name"></h3> | |
| <table class="table table-striped instances"> | |
| <thead> | |
| <tr> | |
| <th>Host</th> | |
| <th>IP</th> | |
| <th>Last seen</th> | |
| <th>Hawt.io</th> | |
| </tr> |
This file contains hidden or 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
| +---------------------------+--------------+------+-----+---------+----------------+ | |
| | Field | Type | Null | Key | Default | Extra | | |
| +---------------------------+--------------+------+-----+---------+----------------+ | |
| | fieldName | varchar(255) | NO | | NULL | | |
This file contains hidden or 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
| public class MyApplication extends WebApplication { | |
| @SpringBean | |
| private MyBean myBean; | |
| @Override | |
| public void init() { | |
| // this.myBean.doSomething() -> NPE | |
| } | |
| } |