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
| #### DYNAMO MIX FILE ##### DYNAMO Project Mix File Below | |
| defmodule Dynamo.Mixfile do | |
| use Mix.Project | |
| def project do | |
| [ app: :dynamo, | |
| elixir: "~> 0.12.0", | |
| version: "0.1.0-dev", | |
| name: "Dynamo", | |
| source_url: "https://github.com/elixir-lang/dynamo", |
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
| iex(40)> URI.decode("% fred") | |
| ** (FunctionClauseError) no function clause matching in URI.hex2dec/1 | |
| (elixir) lib/uri.ex:188: URI.hex2dec(32) | |
| (elixir) lib/uri.ex:179: URI.decode/1 |
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
| defmodule Curl.Mixfile do | |
| use Mix.Project | |
| def project do | |
| [ app: :curl, | |
| version: "0.0.1", | |
| elixir: "~> 0.12.2", | |
| name: "Curl", | |
| source_url: "http:localhost:4000", deps: deps ] | |
| end |
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
| $ find _build/ | |
| _build/ | |
| _build//shared | |
| _build//shared/lib | |
| _build//shared/lib/curl | |
| _build//shared/lib/curl/.compile.elixir | |
| _build//shared/lib/curl/.compile.lock | |
| _build//shared/lib/curl/ebin | |
| _build//shared/lib/curl/ebin/curl.app | |
| _build//shared/lib/curl/ebin/Elixir.Curl.beam |
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
| mix new doctest | |
| cd doctest | |
| Add the following to mix.exs | |
| { :ex_doc, github: "elixir-lang/ex_doc", ref: "f9c1d88acf8211f41c786750d47e9459b885241f" } | |
| mix deps.get | |
| * Getting ex_doc (git://github.com/elixir-lang/ex_doc.git) | |
| Cloning into '/Users/jimfreeze/Documents/Projects/PlugnPay/doctest/deps/ex_doc'... | |
| remote: Reusing existing pack: 2286, done. |
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
| ims-MacBook-Pro-3:n2o_elixir jimfreeze$ mix run --ho-halt | |
| Compiled lib/sample/sup.ex | |
| Compiled lib/sample/routes.ex | |
| Compiled lib/sample.ex | |
| Compiled lib/sample/index.ex | |
| == Compilation error on file lib/sample/n2o.ex == | |
| ** (RuntimeError) error parsing file /Users/jimfreeze/Documents/Projects/N2O/n2o_elixir/_build/dev/lib/cowboy/src/cowboy_req.erl, got: {:error, :enoent} | |
| (elixir) lib/record/extractor.ex:55: Record.Extractor.read_file/1 | |
| (elixir) lib/record/extractor.ex:33: Record.Extractor.retrieve_record/2 | |
| lib/sample/n2o.ex:11: (module) |
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
| $ make | |
| if [ "cabal " = ./Setup ]; then ghc --make Setup; fi | |
| cabal configure | |
| Resolving dependencies... | |
| [ 1 of 20] Compiling Utility.Env ( Utility/Env.hs, dist/setup/Utility/Env.o ) | |
| [ 2 of 20] Compiling Utility.UserInfo ( Utility/UserInfo.hs, dist/setup/Utility/UserInfo.o ) | |
| [ 3 of 20] Compiling Utility.PartialPrelude ( Utility/PartialPrelude.hs, dist/setup/Utility/PartialPrelude.o ) | |
| [ 4 of 20] Compiling Utility.FileSystemEncoding ( Utility/FileSystemEncoding.hs, dist/setup/Utility/FileSystemEncoding.o ) | |
| [ 5 of 20] Compiling Utility.Applicative ( Utility/Applicative.hs, dist/setup/Utility/Applicative.o ) | |
| [ 6 of 20] Compiling Utility.Data ( Utility/Data.hs, dist/setup/Utility/Data.o ) |
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
| My quick notes on what I did to install Elixir on the Raspberry Pi. | |
| All the info is here, but it's a self guided tour. | |
| # Get Raspbian | |
| http://www.raspberrypi.org/downloads | |
| http://downloads.raspberrypi.org/raspbian_latest | |
| # Copy raspbian.img file to th SD Card | |
| diskutils unmountDisk /dev/disk<numberhere> |
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
| {{y,m,d},{_,_,_}} = :calendar.universal_time | |
| to_string(List.flatten(:io_lib.fwrite("~2.2.0w/~2.2.0w/~w", [m,d,y]))) |
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
| In mix.exs of MyApp | |
| def application do | |
| [ | |
| mod: { MyApp, [] }, | |
| applications: [ :httpoison ], | |
| env: [ | |
| account: [ company: "WIC" ] | |
| ] | |
| ] | |
| end |
OlderNewer