- @idlehands DMs are open
- jeffrey@matthias.org
- Testing Elixir Book: the sample code is downloadable without buying the book
- Coveralls Coverage Library
- Mox library for test doubles
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
{ stdenv, fetchurl, fetchzip, fetchFromGitHub | |
# build tools | |
, gfortran, m4, makeWrapper, patchelf, perl, which, python2 | |
, cmake | |
# libjulia dependencies | |
, libunwind, readline, utf8proc, zlib | |
# standard library dependencies | |
, curl, fftwSinglePrec, fftw, gmp, libgit2, mpfr, openlibm, openspecfun, pcre2 | |
# linear algebra | |
, blas, lapack, arpack |
Clojure CLI tools (with deps.edn) allow for a built in way to create projects.
Official CLI/deps guide: https://clojure.org/guides/deps_and_cli
-
Pre-reqs: Clojure and dependencies installed.
-
Install a project creation Tool.
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
{ modulesPath, pkgs, lib, ... }: { | |
imports = [ | |
"${modulesPath}/virtualisation/amazon-image.nix" | |
]; | |
ec2.hvm = true; | |
################################################ | |
system.autoUpgrade = { | |
enable = true; | |
allowReboot = true; |
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
{ pkgs, lib, ... }: | |
with lib; | |
{ | |
config = { | |
i18n.defaultLocale = "de_DE.UTF-8"; | |
time.timeZone = "Europe/Paris"; | |
services = { |
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
{ config, lib, pkgs, ... }: | |
with lib; | |
{ | |
imports = | |
[ | |
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix> | |
./machine-config.nix | |
]; |
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
{ pkgs ? import <nixpkgs> {} }: | |
let | |
# To use this shell.nix on NixOS your user needs to be configured as such: | |
# users.extraUsers.adisbladis = { | |
# subUidRanges = [{ startUid = 100000; count = 65536; }]; | |
# subGidRanges = [{ startGid = 100000; count = 65536; }]; | |
# }; |
Just to get everyone up to speed; Structs are a great because they provide compile time checks. Compile-time checks are awesome as we can catch errors before we run our application in the run-time. Structs also allow us to make custom data types, and we can implement protocols that amongst other things allow us to tell Elixir how it should enumerate over our data type, or insert items into our data type using Protocols.
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
{ pkgs ? import <nixpkgs> {} }: | |
pkgs.mkShell { | |
buildInputs = [ | |
pkgs.hello | |
]; | |
shellHook = '' | |
echo env1 | |
''; |
NewerOlder