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
name=CPSSinkConnector | |
connector.class=com.google.pubsub.kafka.sink.CloudPubSubSinkConnector | |
tasks.max=10 | |
topics=hello_world | |
cps.topic=hello_world | |
cps.project=<GCP PROJECT NAME> | |
value.converter=org.apache.kafka.connect.storage.StringConverter | |
key.converter.schemas.enable=false | |
value.converter.schemas.enable=false |
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 helloworld provides a set of Cloud Functions samples. | |
package helloworld | |
import ( | |
"context" | |
"log" | |
) | |
// PubSubMessage is the payload of a Pub/Sub event. | |
type PubSubMessage struct { |
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
data User = User { | |
name :: String, | |
child :: Maybe User | |
} deriving Show | |
john = User {name="John", child=Just User{name="Christie", child=Nothing}} | |
complexUsers = Map.fromList[(1, john)] | |
lookupComplexUser id = Map.lookup id complexUsers |
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
add = (+) | |
add1 = add 1 |
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
Feature: User attaches picture to household | |
In order to show pictures for households, | |
As any user | |
I want to be able to upload a picture of the entire household to the household page | |
Scenario: User attaches picture to household | |
Given I am a new, authenticated user | |
And a household called "Hun" | |
When I go to the page for household "Hun" | |
And I press "Edit" |
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
Player p = new Player() | |
.init() | |
.play(new File(fileName), testCase, className, params); | |
p.printErrors(); |
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
<repositories> | |
<repository> | |
<id>sonatype-oss</id> | |
<url>http://oss.sonatype.org/content/repositories/releases/</url> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
</repository> | |
<repository> | |
<id>sonatype-oss-snapshots</id> |