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
%%% @author Zachary Kessin <> | |
%%% @copyright (C) 2017, Zachary Kessin | |
%%% @doc | |
%%% | |
%%% @end | |
%%% Created : 19 Jul 2017 by Zachary Kessin <> | |
-module(create_and_delete_db_eqc). | |
-include_lib("eqc/include/eqc.hrl"). |
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
-module(user_default). | |
-compile(export_all). | |
postget(Id) -> | |
{ok, _,_} = barrel:post(?DB, | |
#{<<99, 111, 110, 116, 101, 110, 116>> | |
=> <<0, 0, 0, 0, 0, 0, 0, 0>>, | |
<<105, 100>> | |
=> Id | |
}, | |
#{}), |
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
-module(barrel_rpc_eqc). | |
-compile(export_all). | |
-include_lib("eqc/include/eqc.hrl"). | |
-include_lib("eunit/include/eunit.hrl"). | |
-define(DB, <<"testdb">>). | |
init_db()-> | |
barrel:create_db(#{ <<"database_id">> => <<"testdb">> }), |
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
.....Stdout+Stderr: | |
make: Entering directory '/home/zkessin/Documents/Kobil/mzbench/server' | |
/home/zkessin/Documents/Kobil/mzbench/bin/rebar3 compile | |
===> Verifying dependencies... | |
===> Package <<"header_generator">> not found. Fetching registry updates and trying again... | |
===> Updating package registry... | |
===> Writing registry to /home/zkessin/.cache/rebar3/hex/default/registry | |
===> Generating package index... | |
===> Writing index to /home/zkessin/.cache/rebar3/hex/default/packages.idx | |
===> Plugin header_generator not available. It will not be used. |
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
/* description: Parses and executes mathematical expressions. */ | |
/* lexical grammar */ | |
%lex | |
%% | |
\s+ /* skip whitespace */ | |
[0-9]+("."[0-9]+)?\b return 'NUMBER'; | |
"*" return '*'; |
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
FROM ubuntu | |
RUN apt-get update --yes | |
RUN apt-get install --yes make openssl tmux | |
RUN useradd erlang | |
RUN echo "erlang ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers | |
RUN echo "Defaults:erlang !requiretty" >> /etc/sudoers | |
RUN mkdir -p /home/erlang | |
WORKDIR /home/erlang |
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
# Copyright 2012 Erlware, LLC. All Rights Reserved. | |
# | |
# This file is provided 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 | |
# | |
# Unless required by applicable law or agreed to in writing, |
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
general: | |
branches: | |
ignore: | |
- gh-pages # list of branches to ignore | |
dependencies: | |
cache_directories: | |
- ~/squaretarget/_build | |
- ~/.cache/rebar3 |
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
module Simple exposing (main) | |
import Date exposing (Date, Day(..), day, dayOfWeek, month, year) | |
import DatePicker exposing (defaultSettings) | |
import Html exposing (Html, div, h1, text) | |
type Msg | |
= ToDatePicker DatePicker.Msg |
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
module DecoderTests exposing (..) | |
import Test exposing (..) | |
import Expect | |
import Fuzz | |
import String | |
import Json.Decode exposing (..) | |
import Json.Decode.Extra exposing ((|:)) | |
import Result | |
type Direction = North | South | East | West |