Skip to content

Instantly share code, notes, and snippets.

View rvillars's full-sized avatar

Roger Villars rvillars

View GitHub Profile
@bjconlan
bjconlan / Kotlin Spring-Data-Rest Seed
Last active August 22, 2017 03:32
Kotlin spring-data-rest Seed
A very basic kotlin seed that uses spring boot (and the jpa/rest starters)
@CMCDragonkai
CMCDragonkai / angularjs_directive_attribute_explanation.md
Last active November 29, 2023 15:35
JS: AngularJS Directive Attribute Binding Explanation

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
@wvuong
wvuong / PlacesRESTController.java
Created May 29, 2013 20:38
Simple generic REST-ful Spring MVC controller, interops with Spring Data repositories
package com.willvuong.foodie.controller;
import com.willvuong.foodie.dao.PlaceRepository;
import com.willvuong.foodie.domain.Place;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
package com.bluetrainsoftware.vertx
import org.vertx.java.deploy.Verticle
import org.vertx.java.deploy.impl.VerticleFactory
import org.vertx.java.deploy.impl.VerticleManager
class SpringVerticleFactory implements VerticleFactory {
private VerticleManager mgr
@Override