Skip to content

Instantly share code, notes, and snippets.

%%% @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").
-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
},
#{}),
-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">> }),
@zkessin
zkessin / output.txt
Created June 29, 2017 07:23
mzbench compiler error
.....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.
/* description: Parses and executes mathematical expressions. */
/* lexical grammar */
%lex
%%
\s+ /* skip whitespace */
[0-9]+("."[0-9]+)?\b return 'NUMBER';
"*" return '*';
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
# 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,
general:
branches:
ignore:
- gh-pages # list of branches to ignore
dependencies:
cache_directories:
- ~/squaretarget/_build
- ~/.cache/rebar3
@zkessin
zkessin / Main.elm
Created November 28, 2016 04:41
Datepicker
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
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