Skip to content

Instantly share code, notes, and snippets.

Ivar Grimstad ivargrimstad

Block or report user

Report or block ivargrimstad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ivargrimstad
ivargrimstad / mvc-cla.txt
Last active Jun 10, 2017
CLA for MVC 1.0
View mvc-cla.txt
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
@ivargrimstad
ivargrimstad / ApplicationConfig.java
Last active Sep 4, 2017
Microservices in Java - Snoop example
View ApplicationConfig.java
@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 / ApplicationConfig.java
Created Sep 4, 2015
Microservices in Java - Java EE 7 example
View ApplicationConfig.java
@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 Jul 30, 2019
Microservices in Java - Swarm example
View ApplicationConfig.java
@ApplicationPath("/")
public class ApplicationConfig extends Application {
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> resources = new HashSet<>();
resources.add(HelloResource.class);
return resources;
}
}
@ivargrimstad
ivargrimstad / Application.java
Last active Jul 30, 2019
Microservices in Java - Boot example
View Application.java
@Configuration
@EnableAutoConfiguration
@EnableEurekaClient
@RestController
public class Application {
@RequestMapping("/")
public String home() {
return "Hello World";
}
@ivargrimstad
ivargrimstad / HelloViaKO.java
Last active Oct 4, 2016 — forked from jtulach/HelloViaKO.java
Hello World via Knockout4Java
View HelloViaKO.java
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 {
You can’t perform that action at this time.