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
import { | |
Writer, | |
Connection, | |
AVRO_SERIALIZER, | |
STRING_SERIALIZER, | |
} from "k6/x/kafka"; | |
const brokers = ["kafka:29092"]; | |
const writer = new Writer({ |
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
<link rel="import" href="bower_components/polymer/polymer.html"> | |
<link rel="import" href="bower_components/vaadin-combo-box/src/vaadin-combo-box.html"> | |
<dom-module id="test-design"> | |
<template> | |
<vaadin-combo-box id="myCombo"></vaadin-combo-box> | |
</template> | |
<script> | |
class TestDesign extends Polymer.Element { |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="design-properties" content="{"RULERS_VISIBLE":true,"GUIDELINES_VISIBLE":false,"SNAP_TO_OBJECTS":true,"SNAP_TO_GRID":true,"SNAPPING_DISTANCE":10,"GENERATE_GETTERS":false,"JAVA_SOURCES_ROOT":"src/main/java","THEME":"valo"}"> | |
<meta name="vaadin-version" content="8.0.5"> | |
</head> | |
<body> | |
<vaadin-vertical-layout spacing="false"> | |
<vaadin-horizontal-layout width-full> |
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
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.net.InetSocketAddress; | |
import java.net.Proxy; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import java.util.stream.Collectors; | |
public class UrlChecker { | |
public static void main(String[] args) { |
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
import java.util.Arrays; | |
import org.springframework.boot.web.client.RestTemplateBuilder; | |
import org.springframework.cloud.client.loadbalancer.LoadBalanced; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.hateoas.MediaTypes; | |
import org.springframework.hateoas.hal.Jackson2HalModule; | |
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; | |
import org.springframework.web.client.RestTemplate; |
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
// Approval by username. | |
// +2, lgtm_strong or +1 +1 -> Reviewed and tested | |
// +1 or lgtm -> Reviewed | |
// -2 or -1 -> Remove previous review approval | |
// Review only valid if for the current version | |
// +1 and thumbsup are equal | |
var approvals = {}; | |
var tested = {}; | |
// Timestamp of the currently latest revision. |
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
<link rel="import" href="../polymer/polymer.html"> | |
<link rel="import" href="seed-element.html"> | |
<dom-module id="outer-element"> | |
<template> | |
<seed-element id="seed" on-seed-element-lasers="underAttack"></seed-element> | |
</template> | |
<script> | |
Polymer({ |
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
//Get a new Stream that always calls the given function when a new value | |
//is needed. | |
def stream(): Source[Int, Unit] = | |
Source(() => Iterator.continually(createValue())) | |
//Just an example, could be anything | |
def createValue(): Int = Random.nextInt() |
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
#Install Homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
#Install Cask | |
brew install caskroom/cask/brew-cask | |
#Install Virtualbox binary | |
brew cask install virtualbox | |
#Install Docker and OSX Docker helper |
NewerOlder