Skip to content

Instantly share code, notes, and snippets.

View ivargrimstad's full-sized avatar

Ivar Grimstad ivargrimstad

View GitHub Profile
@ivargrimstad
ivargrimstad / HelloViaKO.java
Last active October 4, 2016 06:36 — forked from jtulach/HelloViaKO.java
Hello World via Knockout4Java
package dew.demo.duke2brwsr;
import net.java.html.json.*;
@Model(className = "Data", properties = {
@Property(name = "image", type = String.class),
@Property(name = "buttonText", type =String.class),
@Property(name = "on", type = boolean.class)
})
class Duke2Brwsr {
static {
@ivargrimstad
ivargrimstad / Application.java
Last active July 30, 2019 14:54
Microservices in Java - Boot example
@Configuration
@EnableAutoConfiguration
@EnableEurekaClient
@RestController
public class Application {
@RequestMapping("/")
public String home() {
return "Hello World";
}
@ivargrimstad
ivargrimstad / ApplicationConfig.java
Last active July 30, 2019 14:53
Microservices in Java - Swarm example
@ApplicationPath("/")
public class ApplicationConfig extends Application {
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> resources = new HashSet<>();
resources.add(HelloResource.class);
return resources;
}
}
@ivargrimstad
ivargrimstad / ApplicationConfig.java
Created September 4, 2015 06:10
Microservices in Java - Java EE 7 example
@ApplicationPath("/")
public class ApplicationConfig extends Application {
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> resources = new HashSet<>();
resources.add(HelloResource.class);
return resources;
}
}
@ivargrimstad
ivargrimstad / ApplicationConfig.java
Last active September 4, 2017 20:02
Microservices in Java - Snoop example
@EnableSnoopClient(serviceName = "hello")
@ApplicationPath("/")
public class ApplicationConfig extends Application {
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> resources = new HashSet<>();
resources.add(HelloResource.class);
return resources;
}
@ivargrimstad
ivargrimstad / mvc-cla.txt
Last active June 10, 2017 10:26
CLA for MVC 1.0
Thank you for your interest in MVC 1.0 (the "Project"), which consist
of the Specification, the Reference Implementation (Ozark) and the
Technology Compatibility Suite (TCK).
In order to clarify the intellectual property license granted with
Contributions from any person or entity, The Project must have a
Contributor License Agreement ("CLA") on file that has been signed
by each Contributor, indicating agreement to the license terms below.
This license is for your protection as a Contributor as well as the
protection of The Project and its users; it does not change your rights