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
| Sinatra | |
| Connection:keep-alive | |
| Content-Disposition:attachment; filename='quote.pdf' | |
| Content-Length:114372 | |
| content-type:application/pdf; charset=utf-8 | |
| Server:thin 1.6.1 codename Death Proof | |
| X-Content-Type-Options:nosniff | |
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(3)> s2=File.stream!("APP_FL.uncompressed.pdf") | |
| #Function<17.133702391 in Stream.resource/3> | |
| iex(4)> Enum.map(s2, fn line -> IO.puts line end ) | |
| %PDF-1.5 | |
| ** (ArgumentError) argument error | |
| :io.put_chars(#PID<0.25.0>, :unicode, [<<37, 226, 227, 207, 211, 10>>, 10]) | |
| /Users/jimfreeze/.kiex/builds/elixir-git/lib/elixir/lib/enum.ex:885: Enum."-map/2-fun-0-"/3 | |
| /Users/jimfreeze/.kiex/builds/elixir-git/lib/elixir/lib/stream.ex:923: Stream.do_resource/5 | |
| /Users/jimfreeze/.kiex/builds/elixir-git/lib/elixir/lib/stream.ex:934: Stream.do_resource/5 |
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
| # VI bindings in iex: | |
| brew install rlwrap # on OSX | |
| echo "alias iex='rlwrap -a foo iex'" >> ~/.bash_profile | |
| echo "set editing-mode vi" >> ~/.inputrc | |
| source ~/.bash_profile | |
| # To run iex WITHOUT rlwrap | |
| \iex |
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 ) |