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
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "Usage: build-node-rpm.sh v0.0.0" | |
exit 1 | |
fi | |
sudo yum install rpmdevtools gcc-c++ openssl-devel libstdc++-devel zlib-devel | |
cd $HOME |
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
1> fridge2:start_fridge(). | |
<0.37.0> | |
The contents are now: | |
[{bacon,44},{eggs,59}] | |
The contents are now: | |
[{bacon,43},{eggs,58}] | |
The contents are now: | |
[{bacon,43},{eggs,57}] | |
2> fridge2:store(milk, 47). | |
stored |
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
-module(mathStuff). | |
-export([perimeter/1]). | |
perimeter({square,Side}) -> | |
4 * Side; | |
perimeter({circle,Radius}) -> | |
2 * 3.1415926 * Radius; | |
perimeter({triangle,A,B,C}) -> | |
A + B + C; | |
perimeter({polygon,L}) -> |