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
| %% -*- erlang -*- | |
| % file: deps/dep-1/rebar.config | |
| {deps, [ | |
| {'dep-2', ".*", {git, "git@github.com:org/dep-1.git", {tag, "0.1.0"}}}, | |
| ]}. |
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
| #!/usr/bin/env bash | |
| function say_hello { | |
| echo "Hello" | |
| } | |
| function say_goodbye { | |
| echo "Goodbye" | |
| } |
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
| #!/usr/bin/env bash | |
| if [ x"$VIRTUAL_ENV" = "x" ]; then | |
| echo "Not in a virtualenv, bouncing" | |
| exit 1 | |
| fi | |
| rm -rf "$VIRTUAL_ENV"/lib/python2.7/site-packages/ | |
| virtualenv "$VIRTUAL_ENV" |
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
| *.pyc |
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
| mkdir ~/Projects | |
| virtualenv ~/Projects/usat-web | |
| mkdir ~/Projects/usat-web/src | |
| . ~/Projects/usat-web/bin/activate | |
| cd ~/Projects/usat-web/src | |
| git clone git@github.com:GannettDigital/usat-web.git | |
| cd usat-web | |
| make deps | |
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
| main = | |
| fmap reverse getLine >>= | |
| \line1 -> fmap reverse getLine >>= | |
| \line2 -> putStrLn $ "You said " ++ line1 ++ " and " ++ line2 ++ " backwards!" |
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(error_m). | |
| -export([return/1, fail/1, bind/2]). | |
| return(V) -> {ok, V}. | |
| fail(V) -> {error, V}. | |
| bind({ok, V}, F) -> F(V); | |
| bind(Err={error, _}, _F) -> Err. |
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(erlmonad). | |
| -compile(export_all). | |
| half(X) when X rem 2 =/= 0 -> | |
| nothing; | |
| half(X) -> | |
| X div 2. |
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
| $ erlc test.erl | |
| test.erl:4: Warning: variable 'A' is unused |
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
| Checking whether the PLT .config_service.plt is up-to-date... yes | |
| Proceeding with analysis...beam.smp(61206,0xb022b000) malloc: *** mmap(size=374341632) failed (error code=12) | |
| *** error: can't allocate region | |
| *** set a breakpoint in malloc_error_break to debug | |
| beam.smp(61206,0xb022b000) malloc: *** mmap(size=374341632) failed (error code=12) | |
| *** error: can't allocate region | |
| *** set a breakpoint in malloc_error_break to debug | |
| beam.smp(61206,0xb022b000) malloc: *** mmap(size=373665792) failed (error code=12) | |
| *** error: can't allocate region | |
| *** set a breakpoint in malloc_error_break to debug |