-
2 Napa Cabbage
-
1 yellow or white onion
-
10 peeled garlic cloves
-
2 heaping spoonfulls of Sae woo jeot
-
10 heaping spoonfulls of coursely ground hot pepper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package foo | |
@Grab('org.spockframework:spock-core:1.0-groovy-2.3') | |
import org.junit.runner.* | |
import spock.lang.Specification | |
import spock.util.EmbeddedSpecRunner | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RestAssuredMockMvc.requestSpecification = MockMvcRequestSpecBuilder() | |
.setMockHttpServletRequestBuilderInterceptor { b -> | |
b.with { r -> r.apply { requestURI = pathInfo } } | |
}.build() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let unpack = (a) => Object.entries(a) | |
.filter(([key, value]) => value.buckets) | |
.flatMap(([key, value]) => value.buckets | |
.flatMap(b => { | |
let current = { | |
[key] : b.key, | |
doc_count: b.doc_count | |
} | |
let unpacked = unpack(b) | |
if (unpacked.length == 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Reader<R, A> { | |
private final Function<R, A> run; | |
public Reader(Function<R, A> run) { this.run = run; } | |
public <B> Reader<R, B> map(Function<A, B> f) { | |
return new Reader<>( r -> f.apply((apply(r))) ); | |
} | |
public <B> Reader<R, B> flatMap(Function<A, Reader<R, B>> f) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mysqlUrl { | |
local ip=`docker-machine ip default` | |
local port=`docker inspect --format='{{(index (index .NetworkSettings.Ports "3306/tcp") 0).HostPort}}' mysql` | |
echo "$ip:$port" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.bmuschko:gradle-docker-plugin:3.2.1' | |
} | |
} | |
// use fully qualified class name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
counter = 1 | |
-- Initialize the pseudo random number generator - http://lua-users.org/wiki/MathLibraryTutorial | |
math.randomseed(os.time()) | |
math.random(); math.random(); math.random() | |
function file_exists(file) | |
local f = io.open(file, "rb") | |
if f then f:close() end | |
return f ~= nil |
1 gallon of tea
-
Boil 1 gallon of water
-
Let cool to roughly 130-170F before adding tea to avoid harsh bitterness
-
Steep tea (i steep for like 30-40 minutes) (5 bags, 2 green 3 black)
-
Stir in sugar and make sure it’s completely disolved (2 cups of sugar)
-
Let sweetened tea cool down to a bit warmer than room temp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ env JAVA_OPTS="-Dratpack.port=8080" build/install/todo-backend-ratpack-java/bin/todo-backend-ratpack-java | |
2016-07-05 10:07:55,058 INFO r.s.RatpackServer [main] Starting server... | |
2016-07-05 10:07:55,785 INFO r.s.RatpackServer [main] Building registry... | |
2016-07-05 10:07:56,455 INFO c.z.h.HikariDataSource [main] HikariCP pool HikariPool-0 is starting. | |
2016-07-05 10:07:56,761 INFO r.s.RatpackServer [main] Initializing 1 services... | |
2016-07-05 10:07:57,176 INFO r.s.RatpackServer [main] Ratpack started for http://localhost:8080 | |
$ env RATPACK_PORT=8080 build/install/todo-backend-ratpack-java/bin/todo-backend-ratpack-java | |
2016-07-05 10:08:30,856 INFO r.s.RatpackServer [main] Starting server... | |
2016-07-05 10:08:31,540 INFO r.s.RatpackServer [main] Building registry... |
NewerOlder