Skip to content

Instantly share code, notes, and snippets.

Avatar

Ray Tsang saturnism

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am saturnism on github.
  • I am saturnism (https://keybase.io/saturnism) on keybase.
  • I have a public key ASBbWFJa6jEdP_o3c09sqhULbX4xSM7LqM8GAHs7fbGkYQo

To claim this, I am signing this object:

@saturnism
saturnism / How are you using JDeferred.md
Last active Oct 20, 2015
How are you using JDeferred?
View How are you using JDeferred.md

Hey JDeferred users. I'd love to hear how you are using it and any feebacks.

@saturnism
saturnism / JDeferred 1.2.0 Release Note.md
Last active Aug 29, 2015
JDeferred 1.2.0 Released! Android AAR support =)
View JDeferred 1.2.0 Release Note.md

JDeferred is a Java Deferred / Promise library.

JDeferred Maven Artifact

<dependency>
    <groupId>org.jdeferred</groupId>
    <artifactId>jdeferred-core</artifactId>
    <version>1.2.0</version>
</dependency>
@saturnism
saturnism / JDeferred New Features.md
Created Nov 8, 2013
JDeferred adds proper promise piping and Android support!
View JDeferred New Features.md

JDeferred trunk just merged 2 new features!

  • Pipe support
  • Android support

Checkout the latest README.md for example.

@saturnism
saturnism / JDeferred 1.0.1 Release Note.md
Created Sep 12, 2013
JDeferred 1.0.1 Released! Checkout http://jdeferred.org for updated examples, including Async Servlet and Java 8 Lambda usage.
View JDeferred 1.0.1 Release Note.md

JDeferred is a Java Deferred / Promise library.

JDeferred Maven Artifact

<dependency>
    <groupId>org.jdeferred</groupId>
    <artifactId>jdeferred-core</artifactId>
    <version>1.0.1</version>
</dependency>
@saturnism
saturnism / Java 8 with JDeferred.md
Last active Dec 22, 2015
Java Lambda 8 with JDeferred!
View Java 8 with JDeferred.md

Just played around w/ Java 8 Lambda expression with my JDeferred project.

dm.when(() -> {
  return "Hey!";
}).done(r -> System.out.println(r));

dm.when(
  () -> { return "Hello"; },
 () -&gt; { return "World"; }
@saturnism
saturnism / gist:5762348
Last active Dec 18, 2015
Infinispan LevelDB Cache Store Example
View gist:5762348
<loaders>
<leveldbStore
location="/tmp/leveldb/data"
expiredLocation="/tmp/leveldb/expired"/>
</loaders>
@saturnism
saturnism / gist:5688196
Last active Dec 17, 2015
exciting to see some finding jdeferred useful and expanding on it!
View gist:5688196
@saturnism
saturnism / gist:5665297
Created May 28, 2013
sample Infinispan JPA cache store configuration
View gist:5665297
<namedCache name="usersCache">
<loaders passivation="false" shared="true" preload="true">
<jpaStore
persistenceUnitName="myPersistenceUnit"
entityClassName="my.package.User"
/>
</loaders>
</namedCache>
View JDeferred 1.0.0 Release Note.md

JDeferred is a Java Deferred / Promise library.

JDeferred Maven Artifact

<dependency>
    <groupId>org.jdeferred</groupId>
    <artifactId>jdeferred-core</artifactId>
    <version>1.0.0</version>
</dependency>