Angular model formatter and parser pair that transforms a set of checkboxes to an array filled with arbitrary values.
<input type="checkbox" ng-model="ctrl.myModel" data-multi-select-value="::arrayValue">
package nl.tudelft.ti2206.bubbles; | |
import java.awt.Point; | |
/** | |
* Circle | |
* | |
* @author Jan-Willem Gmelig Meyling | |
* | |
*/ |
import javax.persistence.EntityManager; | |
import com.google.inject.AbstractModule; | |
import com.google.inject.Inject; | |
import com.google.inject.Singleton; | |
import com.google.inject.persist.PersistService; | |
import com.google.inject.persist.jpa.JpaPersistModule; | |
public class DatabaseModule extends AbstractModule { | |
package nl.tudelft.ewi.gitolite.config.util; | |
import com.google.common.collect.ArrayListMultimap; | |
import com.google.common.collect.HashMultimap; | |
import com.google.common.collect.LinkedHashMultimap; | |
import com.google.common.collect.Multimap; | |
import com.google.common.collect.TreeMultimap; | |
import lombok.AccessLevel; | |
import lombok.AllArgsConstructor; | |
import lombok.Value; |
/** | |
* Angular Module that exposes the search parameters for the current window location. | |
* For example: http://localhost/?test=1 | |
* Exposes: $searchParams.test === 5 | |
* This is different than the search method in the $location service, which only exposes search params set in the location hash. | |
* | |
*/ | |
angular.module('org.searchparams').service('$searchParams', function() { | |
window.location.search.substring(1) | |
.split("&") |
import org.junit.Test; | |
import java.time.Instant; | |
import java.time.LocalDateTime; | |
import java.time.Month; | |
import java.time.ZoneId; | |
import static org.junit.Assert.assertEquals; | |
/** |
package nl.tudelft.cucumber; | |
import java.io.Closeable; | |
public class Calculator implements Closeable { | |
public int add(int a, int b) { | |
return a + b; | |
} |
package org.hibernate.test; | |
import com.google.inject.AbstractModule; | |
import com.google.inject.Inject; | |
import com.google.inject.Singleton; | |
import com.google.inject.persist.PersistService; | |
import com.google.inject.persist.jpa.JpaPersistModule; | |
public class DatabaseTestModule extends AbstractModule { |
package nl.meylingmedia.util; | |
import java.util.Comparator; | |
import java.util.function.BinaryOperator; | |
import java.util.function.Function; | |
/** | |
* Merge functions for solving duplicate keys in toMap collectors. | |
* | |
* @see java.util.stream.Collectors#toMap(Function, Function, BinaryOperator) |
import com.google.common.collect.HashBasedTable; | |
import com.google.common.collect.Table; | |
import com.google.common.collect.Table.Cell; | |
import com.google.common.collect.TreeBasedTable; | |
import lombok.AccessLevel; | |
import lombok.AllArgsConstructor; | |
import lombok.Value; | |
import lombok.experimental.Accessors; | |
import java.util.Collections; |