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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
# disable automatic configuration updates from the original Vagrantbox | |
config.vm.box_check_update = false | |
# Every Vagrant development environment requires a box. You can search for | |
# boxes at https://atlas.hashicorp.com/search. | |
config.vm.box = "fedora/23-cloud-base" |
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
type LogEntry struct { | |
WriteID int | |
Timestamp VectorClock | |
Query string | |
Check string | |
Merge string | |
} |
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
/* AntiEntropy RPC reply structure */ | |
type AntiEntropyReply struct { | |
Succeeded bool | |
MustUpdateLog bool | |
CommitSet []LogEntry | |
TentativeSet []LogEntry | |
UndoSet []LogEntry | |
OmitTimestamp VectorClock | |
} |
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
type BayouServer struct { | |
... | |
... | |
... | |
// Stores committed ops: lower timestamps closer to head | |
CommitLog []LogEntry | |
// Stores uncommitted operations | |
TentativeLog []LogEntry | |
// Stores undo operations for all tentative ops | |
UndoLog []LogEntry |
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 sys | |
import os | |
import subprocess | |
import spotipy | |
import spotipy.util as util | |
import json | |
#This is name of the module - it can be anything you want | |
moduleName = "spotify" |