7 bits found in Elixir


2
Posted by axelson 3 years 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 4 years 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 4 years 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 4 years 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 5 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 5 years ago
Trace garbage collection of a process with pid `pid`.
:dbg.tracer(); :dbg.p(pid, [:garbage_collection])


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