A Pen by MichaelDimmitt on CodePen.
This file contains hidden or 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
| # Elixir has lazily evaluated enumerable objects that allow you | |
| # to work with enumerable objects like lists either only as needed | |
| # or infinitely. | |
| # Start up iex to play around | |
| $ iex | |
| # Typical enumeration is done eagerly where the result is computed ASAP | |
| iex> Enum.map(1..10, fn i -> i * 2 end) | |
| [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] |
A Pen by MichaelDimmitt on CodePen.
Check before running bats does not exist: which bats
Check after running bats exists at nodemodule path which bats
If you have nvm and switch versions a reinstall may be required.
Putting the following into terminal will setup a bash test suite example using NPM global packages.
## remove potential previous bats installation:
## rm -rf /usr/local/bats;
This file contains hidden or 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
| cd ~ && | |
| startingFolderLocation=$OLDPWD && | |
| git clone https://github.com/bats-core/bats-core.git && | |
| cd bats-core && | |
| sudo ./install.sh /usr/local && | |
| cd $startingFolderLocation && | |
| mkdir bats_test_suite_example && | |
| cd bats_test_suite_example && | |
| echo ' | |
| #!/usr/bin/env bats |
A Pen by Rishikesh kumar on CodePen.
Installation of other peoples projects with haskel has been met with varying success.
Hopefully this post helps:
https://pemungkah.com/xmonad-on-os-x-mavericks/
condensed info from that article into a command below: (excluding, XQuartz)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" &&
brew install ghc cabal-install wget &&
This file contains hidden or 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
| # Set variables in .bashrc file | |
| # don't forget to change your path correctly! | |
| export GOPATH=$HOME/go | |
| export GOROOT=/usr/local/opt/go/libexec | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |
NewerOlder