GitHub-based repositories can be kept version-updated using Renovate Bot.
Check out:
- the documentation: https://docs.renovatebot.com/
- the source code: https://github.com/renovatebot/renovate
GitHub-based repositories can be kept version-updated using Renovate Bot.
Check out:
I was going to write a Gist on how you could simplify your Cowboy route declarations,
then it got too big, I wanted to add an example, etc. so... I ended up creating a full
rebar3
/Erlang project in its own GitHub repository:
https://github.com/paulo-ferraz-oliveira/simpler_cowboy_rest
Enjoy!
(from: jelly-beam/rebar3_ex_doc#67)
This little Gist shows how to achieve simple AST walk + update to change a module attribute, that defines a version (in the example), in mix.exs
.
# up_version.exs
defmodule UpVersion do
@mix_exs "mix.exs"
Here's an example on how to do it.
defmodule OneUseAlone do
use Credo.Check,
base_priority: :high,
category: :warning,
explanations: [
check: """
Checks if `use` happens more than once in a given module
Something like
def trace(ms, where) do
Task.start(fn ->
# making sure file is writable (otherwise it'll only crash later, after a WHILE)
:ok = File.write(where, "")
:ok = :fprof.stop()
{:ok, _} = :fprof.start()
Here's an example of how to do it.
def with_performance_log(options, body, context) do
quote bind_quoted: [
context: Macro.escape(context),
options: Macro.escape(options),
body: body
] do
module = "#{context.module}"