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", |
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
| layout { | |
| default_tab_template { | |
| children | |
| pane size=2 borderless=true { | |
| plugin location="zellij:status-bar" | |
| } | |
| } | |
| tab name="dev" focus=true { | |
| pane split_direction="vertical" { |
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
| ##################################################### | |
| # COMMANDS | |
| # Commands are under "space space". | |
| # | |
| # Most commands may be run in a floating (f), down (j), or right (l) pane. | |
| # The "j" and "l" align with the movement keys (i.e. h,j,k,l). | |
| # | |
| # For example, to run a test under cursor in a pane below: | |
| # | |
| # "tab" = open command menu |
OlderNewer