This file contains hidden or 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 org.apache.curator.framework.listen.ListenerContainer<T extends java.lang.Object> extends java.lang.Object implements org.apache.curator.framework.listen.Listenable<T> | |
minor version: 0 | |
major version: 51 | |
flags: ACC_PUBLIC, ACC_SUPER | |
Constant pool: | |
#1 = Utf8 org/apache/curator/framework/listen/ListenerContainer | |
#2 = Class #1 // org/apache/curator/framework/listen/ListenerContainer | |
#3 = Utf8 <T:Ljava/lang/Object;>Ljava/lang/Object;Lorg/apache/curator/framework/listen/Listenable<TT;>; | |
#4 = Utf8 java/lang/Object | |
#5 = Class #4 // java/lang/Object |
This file contains hidden or 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
var wouldWinIfSwitch = 0; | |
var wouldLoseIfSwitch = 0; | |
var gameQty = 0; | |
function runGame() { | |
var prizeDoor = Math.floor(3 * Math.random()); | |
var guessDoor = Math.floor(3 * Math.random()); | |
var firstGuessIsRight = (guessDoor === prizeDoor); | |
if ( firstGuessIsRight ) { | |
++wouldLoseIfSwitch; |
This file contains hidden or 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 List<LocationVote> getMaxTimestampAscending(List<LocationVote> locationVotesSince) | |
{ | |
// map/reduce to max timestamp for a location | |
Map<LocationKey, Optional<Long>> locationToTimestampDesc = locationVotesSince | |
.stream() | |
.collect( | |
Collectors.groupingBy( | |
LocationVote::getLocationKey, | |
Collectors.mapping(LocationVote::getTimestampUtcEpochMilli, Collectors.maxBy(Comparator.reverseOrder()))) | |
) |
This file contains hidden or 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
/* | |
Given a list of Things, return a map of key -> value where value is the | |
value of the highest version of the Thing with that key. | |
*/ | |
public interface Thing { | |
String getKey(); | |
String getValue(); | |
int getVersion(); | |
} |
This file contains hidden or 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 test; | |
import org.apache.curator.test.TestingServer; | |
import org.apache.zookeeper.CreateMode; | |
import org.apache.zookeeper.KeeperException; | |
import org.apache.zookeeper.KeeperException.NodeExistsException; | |
import org.apache.zookeeper.WatchedEvent; | |
import org.apache.zookeeper.Watcher; | |
import org.apache.zookeeper.ZooDefs; | |
import org.apache.zookeeper.ZooKeeper; |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | |
xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>com.bluejeans.speedo</groupId> | |
<artifactId>platform-parent</artifactId> | |
<version>0.5.0-SNAPSHOT</version> | |
</parent> |
This file contains hidden or 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
{ | |
"swaggerVersion" : "1.2", | |
"apiVersion" : "$SPEEDO_DOCS_VERSION$", | |
"basePath" : "$SPEEDO_DOC_PATH$", | |
"apis" : [ { | |
"path" : "/test.{format}" | |
} ] | |
} |
This file contains hidden or 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
{ | |
"apiVersion" : "$SPEEDO_DOCS_VERSION$", | |
"swaggerVersion" : "1.2", | |
"basePath" : "$SPEEDO_API_PATH$", | |
"resourcePath" : "/test", | |
"apis" : [ { | |
"path" : "/test", | |
"operations" : [ { | |
"method" : "GET", | |
"nickname" : "myApi", |
This file contains hidden or 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
project { | |
modelVersion '4.0.0' | |
parent { | |
groupId 'com.bluejeans.speedo' | |
artifactId 'example-service' | |
version '0.1.0-SNAPSHOT' | |
} | |
artifactId 'example-service-server' | |
version '0.1.0-SNAPSHOT' | |
dependencies { |
This file contains hidden or 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
[exec] /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/Users/jordanzimmerman/dev/zookeeper/src/c -I/Users/jordanzimmerman/dev/zookeeper/src/c/include -I/Users/jordanzimmerman/dev/zookeeper/src/c/tests -I/Users/jordanzimmerman/dev/zookeeper/src/c/generated -Wall -Werror -Wdeclaration-after-statement -g -O2 -D_GNU_SOURCE -MT zookeeper.lo -MD -MP -MF .deps/zookeeper.Tpo -c -o zookeeper.lo `test -f 'src/zookeeper.c' || echo '/Users/jordanzimmerman/dev/zookeeper/src/c/'`src/zookeeper.c | |
[exec] libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/Users/jordanzimmerman/dev/zookeeper/src/c -I/Users/jordanzimmerman/dev/zookeeper/src/c/include -I/Users/jordanzimmerman/dev/zookeeper/src/c/tests -I/Users/jordanzimmerman/dev/zookeeper/src/c/generated -Wall -Werror -Wdeclaration-after-statement -g -O2 -D_GNU_SOURCE -MT zookeeper.lo -MD -MP -MF .deps/zookeeper.Tpo -c /Users/jordanzimmerman/dev/zookeeper/src/c/src/zookeeper.c -fno-common -DPIC -o .libs/zookeeper.o | |
[exec] /Users/jordanzimmer |