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.Factories.BuildStubbedStrategy do | |
use ExMachina.Strategy, function_name: :build_stubbed | |
alias Ecto.Association.BelongsTo | |
alias Ecto.Association.Has | |
alias Ecto.Association.NotLoaded | |
alias Ecto.UUID | |
def handle_build_stubbed(record, _opts \\ []) do | |
record |
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.Crud do | |
defmacro list(config) do | |
quote bind_quoted: [config: config] do | |
def unquote(:"list_#{config.plural_name}")(queries \\ & &1) do | |
unquote(config.schema) | |
|> queries.() | |
|> unquote(config.repo).all() | |
end | |
end | |
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
{ | |
"assistant": { | |
"default_model": { | |
"provider": "copilot_chat", | |
"model": "gpt-3.5-turbo" | |
}, | |
"version": "2" | |
}, | |
"auto_update": true, | |
"theme": { |
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
[ | |
//////////////////////////////////////////// | |
// All Contexts | |
//////////////////////////////////////////// | |
{ | |
"bindings": { | |
// Open Project | |
"cmd-shift-p": "projects::OpenRecent", | |
// Left Dock |
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
// Static tasks configuration. | |
[ | |
{ | |
"label": "Sublime Merge", | |
"command": "smerge .", | |
"reveal": "never", | |
"hide": "always" | |
}, | |
{ | |
"label": "Lazygit", |
OlderNewer