Skip to content

Instantly share code, notes, and snippets.

@ApiModel("Outage Message")
public class OutageDto {
private String applicationName;
private DateTime outageDate;
private String message;
public OutageDto() {}
public OutageDto(Locale locale, Outage outage) {
this.applicationName = "My App";
this.outageDate = new DateTime(outage.getStartTime());
@EnableSwagger
@Configuration
public class SwaggerConfig {
@Autowired
private SpringSwaggerConfig springSwaggerConfig;
@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
@ApiModel("Outage Message")
public class OutageDto {
private String applicationName;
private DateTime outageDate;
private String message;
public OutageDto() {}
resolvers += Classpaths.typesafeResolver
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.2.0")
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.7.0")
# Set up USER's home directory
# Don't want our H:\ as our bash home, that's on a network which is slow
#if [ -z "$HOME" -o ! -d "$HOME" ]; then
# HOME="$HOMEDRIVE$HOMEPATH"
# if [ -z "$HOME" -o ! -d "$HOME" ]; then
HOME="$USERPROFILE"
# fi
#fi
val matchingNodes = for (
(node1, node2) <- node1List zip node2List
) yield compare(node1, node2)
@ctataryn
ctataryn / gist:d1b05a3bd0d21c381b5e
Created October 24, 2014 18:29
Ember Event Bubbling
Router.map(function() {
this.route('workspace');
this.route('cart');
this.resource('file-details', {path: '/file-details/:folder_id'}, function() {
this.resource('file-contents', function() {
this.route('details', {path: '/:id'});
});
this.resource('file-search', {path:'search-and-order'}, function() {
// TODO: when filesearch is implemented you will need to add resources for 'titles' and
{{#if cartEmpty}}
<span id="cartCheckoutLinkDisabled" class="button right button_tooltip disabled">
<span class="icon icon-cart-empty"></span>
{{t 'titles.online.view.cart'}}
</span>
{{else}}
{{#link-to 'cart' id="cartCheckoutLink"}}
<span class="icon icon-cart"></span>
{{t 'titles.online.view.cart'}}
{{/link-to}}
test('it has the right css class when the cart is empty', function() {
expect(2);
var component = this.subject({
cartEmpty: false
});
this.append();
ok(component.$().find('#cartCheckoutLink').length, 'The view-cart component should be enabled if the cart is not empty');
{{tooltip-info-button
titleTranslation='performSearchByTitleNumber'
hook='topmiddle'
textTranslation='toSearchMultipleTitles'
isAlert=true
}}