$git ls-files -u | cut -f 2 | sort -u$git ls-files -u | awk '{print $4}' | sort | uniqor just add an alias
| [core] | |
| repositoryformatversion = 0 | |
| filemode = false | |
| logallrefupdates = true | |
| autocrlf = false | |
| [color] | |
| branch = auto | |
| diff = auto | |
| status = auto | |
| [color "branch"] |
| /** The Resource adapter can't depend on any provider's specific library. Because of that we use reflection to locate the | |
| * transaction manager during startup. | |
| * | |
| * | |
| * TODO: https://jira.jboss.org/browse/HORNETQ-417 | |
| * We should use a proper SPI instead of reflection | |
| * We would need to define a proper SPI package for this. | |
| * */ | |
| public static TransactionManager locateTM(final String locatorClass, final String locatorMethod) | |
| { |
| public class JBoss7TransactionManagerLookup implements TransactionManagerLookup { | |
| public TransactionManager getTransactionManager() throws Exception { | |
| InitialContext ic = new InitialContext(); | |
| TransactionManager tm = (TransactionManager) ic.lookup("java:jboss/TransactionManager"); | |
| if (tm == null) throw new IllegalStateException("Couldn't find the transaction mamager in JNDI"); | |
| return tm; | |
| } | |
| } |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://java.sun.com/xml/ns/javaee" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> | |
| <!-- Enable JCACHE interceptors --> | |
| <interceptors> | |
| <class>org.infinispan.cdi.interceptor.CacheResultInterceptor</class> | |
| <class>org.infinispan.cdi.interceptor.CacheRemoveEntryInterceptor</class> | |
| <class>org.infinispan.cdi.interceptor.CacheRemoveAllInterceptor</class> |
| package com.example | |
| import javax.enterprise.event.Observes; | |
| import javax.enterprise.inject.spi.*; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| public class CdiExtension implements Extension { |
Copyright © 2017 Fantasyland Institute of Learning. All rights reserved.
A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.
val square : Int => Int = x => x * x| // Spawn your futures | |
| val fs = (1 to 100).map { i => | |
| Future { Thread.sleep(i); i } | |
| } | |
| // Wrap all of the work up into a single | |
| // Future | |
| val f = Future.sequence(fs) | |
| // Wait on it forever - i.e. until it's done |
I hereby claim:
To claim this, I am signing this object:
| package flowcontrol | |
| import scala.concurrent.duration._ | |
| import akka.actor.typed.ActorRef | |
| import akka.actor.typed.ActorSystem | |
| import akka.actor.typed.Behavior | |
| import akka.actor.typed.scaladsl.Behaviors | |
| /** |