- Dynamo: Amazon’s highly available key-value store
- Harvest, yield, and scalable tolerant systems
- Lessons from giant-scale services
- Delta State Replicated Data Types
- The Swarm Protocol 1.2.1
- A Comprehensive Study of Convergent and Commutative Replicated Data Types
- A Commutative Replicated Data Type For Cooperative Editing
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
require 'dry-validation' | |
schema = Dry::Validation.Schema do | |
required(:field_1).filled(:str?) | |
required(:field_2).filled(:int?) | |
rule(field_2_depends_on_field_1: [:field_1, :field_2]) do |field_1, field_2| | |
field_1.eql?('Foo').then(field_2.eql?(0)) & field_1.eql?('Bar').then(field_2.eql?(1)) | |
end | |
end |
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
require 'dry-validation' | |
ThreeDigits = /^\d{3}$/ | |
FourDigits = /^\d{4}$/ | |
schema = Dry::Validation.Schema do | |
required(:field_1).filled(:str?) | |
required(:field_2).filled(:str?) | |
rule(field_2_depends_on_field_1: [:field_1, :field_2]) do |field_1, field_2| |
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
""" | |
You should add Flow as a dependency to your Mix project configuration: | |
mix.exs: | |
defp deps do | |
[ | |
..., | |
{:flow, "~> 0.14.2"}, | |
... |
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
# Mac | |
# | |
# Usage: clear_docker_logs <CONTAINER_NAME> | <CONTAINER_ID> | |
clear_docker_logs() { | |
docker_log_file=$(docker inspect --format='{{.LogPath}}' $1) | |
clear_command="truncate -S 0 $docker_log_file" | |
screen -d -m -S dockerlogdelete ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty | |
screen -S dockerlogdelete -p 0 -X stuff $"$clear_command" | |
screen -S dockerlogdelete -p 0 -X stuff $'\n' |
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 com.example.project.entity | |
import org.hibernate.annotations.Type | |
import org.hibernate.annotations.TypeDef | |
import com.example.project.enumeration.PostgreSQLEnumType | |
import com.example.project.enumeration.ModelStatus | |
import javax.persistence.Column | |
import javax.persistence.Entity | |
import javax.persistence.EnumType | |
import javax.persistence.Enumerated |
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 org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
plugins { | |
id("org.springframework.boot") version "2.2.0.RELEASE" | |
id("io.spring.dependency-management") version "1.0.8.RELEASE" | |
id("org.liquibase.gradle") version "2.0.1" | |
kotlin("jvm") version "1.3.50" | |
kotlin("plugin.spring") version "1.3.50" | |
kotlin("plugin.jpa") version "1.3.50" | |
} |
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
version: "3.7" | |
services: | |
app: | |
image: gradle:jdk11 | |
container_name: app | |
working_dir: /app | |
user: gradle | |
command: | |
- sleep |
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
CC=g++ | |
CFLAGS=-c -Wall | |
LDFLAGS= | |
SOURCES=main.cpp input.cpp sort.cpp | |
OBJECTS=$(SOURCES:.cpp=.o) | |
EXECUTABLE=mergesort | |
all: $(SOURCES) $(EXECUTABLE) | |
$(EXECUTABLE): $(OBJECTS) |
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
DROP SCHEMA IF EXISTS membership CASCADE; | |
CREATE SCHEMA membership; | |
SET SEARCH_PATH TO membership; | |
CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA membership; | |
CREATE SEQUENCE id_sequence; -- AS bigint |
OlderNewer