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
| .directive('copyValue', function($parse) { | |
| return function(scope, element, attrs) { | |
| if (attrs.ngModel) { | |
| if (element[0].type === "radio") { | |
| if (element[0].checked === true) { | |
| $parse(attrs.ngModel).assign(scope, element.val()); | |
| } | |
| } else { | |
| $parse(attrs.ngModel).assign(scope, element.val()); | |
| } |
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
| package service | |
| import play.api._ | |
| import securesocial.core._ | |
| import securesocial.core.providers.Token | |
| import securesocial.core.UserId | |
| import models._ | |
| class SlickUserService(application: Application) extends UserServicePlugin(application) { |
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
| angular.module('app').factory('pubsub', function() { | |
| var o = $({}); | |
| $.subscribe = function() { | |
| o.on.apply(o, arguments); | |
| }; | |
| $.unsubscribe = function() { | |
| o.off.apply(o, arguments); | |
| }; |
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
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-jdk7-installer |
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
| # Upstart file to make play app start when server starts | |
| description "PlayFramework 2" | |
| author "Leon Radley <leon@digiplant.se>" | |
| version "1.0" | |
| env USER=myuser | |
| env GROUP=mygroup | |
| env HOME=/home/myuser/app |
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
| package models; | |
| import java.util.*; | |
| import javax.persistence.*; | |
| import com.avaje.ebean.Expr; | |
| import com.avaje.ebean.Query; | |
| import org.codehaus.jackson.annotate.JsonIgnore; | |
| import org.codehaus.jackson.annotate.JsonProperty; | |
| import play.data.validation.Constraints; |
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
| /* | |
| http://thecodeplayer.com/walkthrough/single-element-pure-css3-double-fold-ribbon | |
| */ | |
| /*Basic reset*/ | |
| * {margin: 0; padding: 0;} | |
| html, body {height: 100%;} | |
| 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
| package models.sgcore; | |
| import com.avaje.ebean.event.BeanPersistAdapter; | |
| import com.avaje.ebean.event.BeanPersistRequest; | |
| import javax.annotation.PreDestroy; | |
| import javax.persistence.*; | |
| import java.lang.reflect.InvocationTargetException; | |
| import java.lang.reflect.Method; | |
| import java.util.HashMap; |
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
| package utils; | |
| import com.avaje.ebean.Ebean; | |
| import org.yaml.snakeyaml.constructor.AbstractConstruct; | |
| import org.yaml.snakeyaml.constructor.CustomClassLoaderConstructor; | |
| import org.yaml.snakeyaml.nodes.Node; | |
| import org.yaml.snakeyaml.nodes.ScalarNode; | |
| import org.yaml.snakeyaml.nodes.Tag; | |
| import java.util.regex.Matcher; |
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> | |
| <html version="HTML+RDFa 1.1" lang="en"> |