Skip to content

Instantly share code, notes, and snippets.

View poctek's full-sized avatar
🏄‍♂️
Most likely writing code

Rostislav Katin poctek

🏄‍♂️
Most likely writing code
View GitHub Profile
@poctek
poctek / cassandra-compose.yml
Created October 27, 2018 08:09
Cassandra compose
version: '3'
services:
seed-node:
image: cassandra
volumes:
- ./tmp/seed-node:/var/lib/cassandra
ports:
- "9042:9042"
- "7199:7199"
- "9160:9160"
# frozen_string_literal: true
module Payouts
module Operations
module Unlocker
class CalculateRewards
include Dry::Monads::Result::Mixin
include Dry::Monads::List::Mixin
include Dry::Monads::Do.for(:call)
# frozen_string_literal: true
module StatsApi
module Operations
module UpdateRealtimeStatsViews
class UpdateLastShareTimestamps < Operations::BaseOperation
include Dry::Monads::Try::Mixin
include Import[
:application_config,
# frozen_string_literal: true
Dry::Validation.load_extensions(:monads)
module BaseTransaction
def self.included(base)
base.include Dry::Transaction
base.extend ClassMethods
end