6 bits found in Elixir


1
Posted by axelson 3 months ago
Trace all calls to a module without any external libraries
:dbg.tracer()
# Or replace the `_` with a function name to trace just that function
:dbg.tpl(MyModule...

MORE

2
Posted by ityonemo 3 months ago
VSCode IO.inspect snippet for Elixir users
{
	"Inspect": {
		"prefix": "ins",
		"body": "|> IO.inspect(label: \"$0$TM_LINE_NUMBER\")",
		"descri...

MORE

0
Posted by albydarned 3 months ago
How to use the OAuth2 Library (https://github.com/scrogson/oauth2) to connect with GitHub in Elixir. ...
defmodule App.GitHub do
  use OAuth2.Strategy

  # Public API

  def client do
    OAuth2.Client.new(...

MORE

0
Posted by axelson 1 year ago
iex> :code.which Tuple
'/Users/jason/.asdf/installs/elixir/1.8.1-otp-21/bin/../lib/elixir/ebin/Elixir...

MORE

0
Posted by axelson 1 year ago
Trace garbage collection of a process with pid `pid`.
:dbg.tracer(); :dbg.p(pid, [:garbage_collection])


1
Posted by axelson 1 year ago
System.unique_integer([:positive, :monotonic])