This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local get_api_key = function(path) | |
local expanded_path = vim.fn.expand(path) | |
local file = io.open(expanded_path, "r") | |
if file then | |
local content = file:read("*all"):gsub("\n", "") | |
file:close() | |
return content | |
else | |
error("Could not open file!") | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule MyApp.YugoSupervisor do | |
use Supervisor | |
require Logger | |
def start_link(init_arg) do | |
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__) | |
end | |
@impl true | |
def init(_init_arg) do |
OlderNewer