Elixir

Elixir leverages the Erlang VM, known for running low-latency, distributed and fault-tolerant systems, while also being successfully used in web development, and the embedded software domain.
Here are 5,950 public repositories matching this topic...
Steps to reproduce
Run asdf
. In help output a line is printed for the asdf env
command:
asdf env <command> [executable] Prints or runs an executable under a command environment
I would assume <command>
is an arbitrary command. But from what I can tell needs to be a plugin name or a shim name? I'm also not sure how this differs from executing the shim directly.
FY
Well, we need to check all the projects and remove outdated ones.
We declare this in the readme:
However, keep in mind that we don't accept mammoth's shit. Only active and interesting projects with good documentation are added. Dead and abandoned projects will be removed.
But, sadly at this moment, this project looks like a mammoth shit itself.
We really need to fix it. I think
-
Updated
May 17, 2020
-
Updated
May 5, 2020 - Elixir
Hello
I am currently following the tutorial Getting started with Guardian and within the section Create Implementation Module is a broke link to the implementation module docs.
The correct one would be `https://github.com/ueberauth/guardian/blob/master/guides/introduction/
First thanks for the great project and the great documentation!
The docs for migrations describe a pretty good approach. However, to the best of my search ability the docs seem not to mention how to do rollbacks of migrations which to me is an integral part of any deployment that I wouldn't want to launch without.
This is something that I'm currently working on, but this should allow people like me that learn from example better than from documentation and standalone examples to grasp the idea of the lang easier. I'm creating a fork in which I will implement this in the english version.
Please i get this error trying to translate the following to new rustler syntax:
previous:
rustler_export_nifs!(
"Elixir.Xtdlib.Native",
[
("new", 0, new),
("send", 2, send),
("execute", 2, execute),
("recv", 2, receive, SchedulerFlags::DirtyIo),
],
Some(on_load)
);
error: proc macro panicked
--> src/lib.rs:91:1
|
Doing the following:
file = "something.xml"
HTTPoison.post(
"https://example.com",
{:multipart, [{:file, file, {"form-data", [name: "\"foobar\"", filename: "\"#{Path.basename(file)}\""]}, [{"Content-Type", "application/xml"}]}]},
[{"Content-Type", "application/xml"}],
[]
)
Is it possible not to send the content-length
in the multipart req
If json contains the following string <!-- anything here <script>
it will comment out the rest of HTML braking the website.
The problem?
Adding the :html_safe
to encode/2
doesn't escape this sequence.
Reproduction
<script>
const a = "<!-- <script>"
</script>
<h1>This is commented out</h1>
Why is that?
Because of the HTML Spec https://html.spec.what
We should either show good Elixir style in all koans or add a koan at the end that shows good elixir style.
This is just a reminder to double-check what we have.
Just helped a user on Slack through this:
you cant create rootfs overlay files for the appdata partition in Nerves. This is because it gets formatted on first boot before being mounted. I think this behavior is fine, but we need to document it.
Beginner Tutorial
A tutorial that goes through steps from start to finish on setting up elixirscript in a phoenix application. Aimed at beginners.
The Overview section shows example of Article
factory:
def article_factory do
%MyApp.Article{
title: "Use ExMachina!",
# associations are inserted when you call `insert`
author: build(:user),
}
end
However, in Ecto Associations section there is following snippet:
def article_factory do
%Article{
title: "Use ExM
SendGrid api has the following properties for emails:
https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html
See the disposition
and content_id
properties under attachments.
These turn out to be pretty important when you're sending .ics files (calendar invites). By default SendGrid populates the disposition value with "attachment" if it isempty, but Microsoft Outlook requi
-
Updated
May 22, 2020 - Elixir
Pop up documentation
Hello,
Could you add the pop-up documentation of a function/variable when we press Ctrl + Q
? For now it shows No documentation found.
even if I used @doc
on the function.
Thanks
Steps to reproduce
iex> t1 = "2019-04-03T21:07:45Z" |> Timex.parse!("{ISO:Extended:Z}") |> Timex.to_datetime("Europe/Berlin")
#DateTime<2019-04-03 23:07:45+02:00 CEST Europe/Berlin>
iex> Timex.day(t1)
93
iex> t2 = "2019-04-03T22:07:45Z" |> Timex.parse!("{ISO:Extended:Z}") |> Timex.to_datetime("Europe/Berlin")
#DateTime<2019-04-04 00:07:45+02:00 CEST Europe/Berlin>
iex> Timex.
It looks like the new parse_document
's output is not the same as the deprecated parse
. By using the example provided in the documentation:
html = """
<html>
<body>
<div class="example"></div>
</body>
</html>
"""
Floki.parse_document(html)
{:ok,
[
{"html", [],
[
{"head", [], []},
{"body", [],
[
"\n",
" ",
I walked through the various repos (dependabot-script, dependabot-core) for Dependabot, but haven't found any suitable documentation that covers the following stuff:
- How to run Dependabot with self-hosted GitHub, so that I could use it in the same way like I do regularly on GitHub with UI (e.g.
I was running it to a situation where I set the log_level of a Logger middleware to always be :debug
, but I was still seeing log output with the Logger log_level set to warn
.
Looking at the code, it does something slightly different than was the documentation says.
If the request returns {:error, whatever}, the log level is always set to :error, the custom log level function is never cal
For checkbox inputs of associations with unique pluralization requirements, e.g. specialty/specialties, ExAdmin incorrectly pluralizes the <association>_ids
param key: specialtys
.
In https://github.com/smpallen99/ex_admin/blob/master/lib/ex_admin/param_associations.ex#L34, if you replace
new_key =
String.replace_suffix(key_as_string, "_ids", "s")
|> String.to_atom()
FYI
Readme says:
def deps do
[{:coherence, "~> 0.6"}]
end
However, in https://hex.pm/packages/coherence it only has version 0.5.2. Users get this error:
➜ path-to-project git:(master) ✗ mix deps.get
** (Mix) No matching version for coherence ~> 0.6 (from: mix.exs) in registry
The latest version is: 0.5.2
See screenshot. Thank you!
![screen s
Precheck
I didn't find any existing issues (open or closed) that cover this.
I think my Dialyzer and Erlex are up-to-date but I could be wrong – please let me know.
Environment
$ elixir --version
Erlang/OTP 21 [erts-10.2.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
Elixir 1.8.0 (compiled with Erlang/OTP 20)
$ cat mix.lock | grep dialyxir
"dia
Turns out this is a whitelist that defaults to []
. We just got bit pretty hard by this behavior being hidden, so it's worth calling out in the docs. Effectively we had a bunch of plugs all acting on the presence of query params and were very confused why they never seemed to actually trip. This whitelist behavior was very unexpected.
Seems to have been added quite a while back in https://git
Created by José Valim
Released September 8, 2014
- Organization
- elixir-lang
- Website
- elixir-lang.org
- Wikipedia
- Wikipedia
Hello!
Problem
I tried to use long polling by js client, and read the documentation.
I found 2 problems about docs.
opts.transport
as Socket constructor parameter, and type of transport is string. But it se