Skip to content

Instantly share code, notes, and snippets.

@CaryBourgeois
CaryBourgeois / main.go
Created May 8, 2019 13:58
Simple Users Groups Graph Example
/*
* Copyright 2018 Fauna, Inc.
*
* Licensed under the Mozilla Public License, Version 2.0 (the "License"); you may
* not use this software except in compliance with the License. You may obtain a
* copy of the License at
*
* http://mozilla.org/MPL/2.0/
*
* Unless required by applicable law or agreed to in writing, software distributed
@CaryBourgeois
CaryBourgeois / Docker.md
Created October 23, 2018 15:06
How to set up FaunaDB clusters using the Public Docker image.

How to use the FaunaDB public Docker image.

This document will walk through creating a FaunaDB docker instance using the publicly available docker image. Three different types of deployments will be illustrated.

  • A single node FaunaDB - basic developer functionality.
  • A three node, single replica instance of FaunaDB - scale out operations.
  • A three node, three replicas instance of FaunaDB - distributed operations.

Finally, we will wrap up with some more general documentation around the various options available when using the public docker image.

Requirements

@CaryBourgeois
CaryBourgeois / main.go
Created August 24, 2018 22:17
Learn-Fauna-Go Part 4
/*
* Copyright 2018 Fauna, Inc.
*
* Licensed under the Mozilla Public License, Version 2.0 (the "License"); you may
* not use this software except in compliance with the License. You may obtain a
* copy of the License at
*
* http://mozilla.org/MPL/2.0/
*
* Unless required by applicable law or agreed to in writing, software distributed
@CaryBourgeois
CaryBourgeois / main.go
Last active August 17, 2023 11:44
Learn-Fauna-Go Part 3
/*
* Copyright 2018 Fauna, Inc.
*
* Licensed under the Mozilla Public License, Version 2.0 (the "License"); you may
* not use this software except in compliance with the License. You may obtain a
* copy of the License at
*
* http://mozilla.org/MPL/2.0/
*
* Unless required by applicable law or agreed to in writing, software distributed
@CaryBourgeois
CaryBourgeois / main.go
Created August 8, 2018 15:08
Learn-Fauna-Go Part 2
/*
* Copyright 2018 Fauna, Inc.
*
* Licensed under the Mozilla Public License, Version 2.0 (the "License"); you may
* not use this software except in compliance with the License. You may obtain a
* copy of the License at
*
* http://mozilla.org/MPL/2.0/
*
* Unless required by applicable law or agreed to in writing, software distributed
@CaryBourgeois
CaryBourgeois / SparkKafkaConsumer.scala
Created November 3, 2015 02:55
Moving Average Example with Spark Kafka Direct API
package com.datastax.demo
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0