Skip to content

Instantly share code, notes, and snippets.

@clemp6r
clemp6r / AzureStorageDeployTask.groovy
Last active May 11, 2021 05:34
Gradle task for deploying a file to Azure Blob Storage
package com.github.clemp6r.azuregradle
import org.gradle.api.DefaultTask
import com.microsoft.azure.storage.*;
import com.microsoft.azure.storage.blob.*
import org.gradle.api.tasks.TaskAction;
class AzureStorageDeployTask extends DefaultTask {
import com.github.clemp6r.futuroid.Async;
import com.github.clemp6r.futuroid.Future;
import java.util.concurrent.Callable;
import rx.Observable;
import rx.subjects.PublishSubject;
/**
* Helper for integrating Futuroid with Rx.
package com.wizbii.wizbiiandroid.services
import rx.Observable
import rx.subjects.PublishSubject
/**
* POC of a reactive data store.
*/
abstract class ReactiveStore<T> {
// inferred type is Sequence<Int>
val fibonacci = buildSequence {
yield(1)
var cur = 1
var next = 1
while (true) {
yield(next)
val tmp = cur + next
cur = next
next = tmp