Skip to content

Instantly share code, notes, and snippets.

View bkono's full-sized avatar

Bryan Konowitz bkono

View GitHub Profile
@bkono
bkono / gen.lua
Last active May 31, 2024 03:45
gen.nvim update to support multiple providers, including openai and groq
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
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