Skip to content

Instantly share code, notes, and snippets.

{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description": "create LookupStackOutputs LambdaHandler ",
"Parameters": {},
"Resources" : {
"LookupStackOutputs": {
package com.techscore.sandbox;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
@yuki-teraoka
yuki-teraoka / gist:61c16bbed292c648fd72
Created March 2, 2015 02:36
Gradle dependsOnSerial
@Category(Task)
class TaskExtension {
void dependsOnSerial(List<Task> tasks) {
if (!tasks) return
tasks.each { this.dependsOn it }
def firstTask = tasks.pop();
tasks.reverse().inject(firstTask) { after, before ->
after.shouldRunAfter before
before
@yuki-teraoka
yuki-teraoka / enumerator_lazy_ruby19.rb
Created December 4, 2012 06:55
Enumerator::Lazy for ruby 1.9
module Enumerable
def lazy
enum = self
Enumerator::Lazy.new(self).tap do |obj|
obj.instance_variable_set(:@enum , enum)
obj.instance_variable_set(:@method, false)
obj.instance_variable_set(:@args , [])
end
end
end