7 bits found in Elixir


2
Posted by axelson 2 months ago
This will help you write a snippet like this inside a pipeline: find_items() |> IO.inspe...
# -*- mode: snippet -*-
# name: Piped Inspect
# key: pin
# --
|> IO.inspect(label: "$2$1 (`(buffer-na...

MORE

2
Posted by axelson 1 year 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 1 year 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 1 year 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

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

MORE

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


2
Posted by axelson 2 years ago
System.unique_integer([:positive, :monotonic])