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
| #!/bin/sh | |
| # ------------------- General ------------------ # | |
| # Settings | |
| code --install-extension editorconfig.editorconfig | |
| code --install-extension PeterSchmalfeldt.explorer-exclude | |
| # AI Code Assistants | |
| code --install-extension Continue.continue |
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
| # oh-my-zsh + nerd font + fira code + LSD Deluxe | |
| FROM aifrak/oh-my-zsh:0.3.2 AS oh-my-zsh | |
| FROM build AS build-dev | |
| ARG APP_USER_ZSH=$APP_USER_HOME/.oh-my-zsh | |
| ARG APP_USER_ZSH_CUSTOM=$APP_USER_ZSH/custom | |
| # zsh | |
| COPY --from=oh-my-zsh /bin/rzsh /bin/zsh /bin/zsh5 /bin/ | |
| COPY --from=oh-my-zsh /usr/bin/zsh /usr/bin/zsh |
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
| repeat = 10 | |
| microseconds = 1_000_000 | |
| max_concurrency = System.schedulers_online() | |
| test_func = fn -> :timer.tc(PerfectNumbers, :aliquot_sum, [33_550_335]) |> elem(0) end | |
| recompile && Stream.repeatedly(fn -> test_func end) |> Task.async_stream(fn fun -> fun.() end, timeout: :infinity, ordered: false, max_concurrency: max_concurrency) |> Stream.map(fn {:ok, r} -> r end) |> Enum.take(repeat) |> then(&(Enum.sum(&1) / repeat) / microseconds) |
- "Check that the version of Elixir on the client matches the server" (Source)
- In livebook container, publish ports. For example:
8080:8080
8081:8081 - Add network of the elixir container to the livebook container. To list networks, run
docker network ls. - Bind your own folder to
/datafrom the Livebook container.
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
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "mix_task", | |
| "name": "mix test", | |
| "request": "launch", |
VSCode allows us to customize a theme with the setting
editor.tokenColorCustomizations. Some theme like Dark Modern VSCode theme or Github Dark Default have already syntax highlighting for RegEx.
Knowing that, we have the possibilities to have a more advanced highlighting closer to regex101, regexr or regextester.
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
| # Copy this file in C:\Users\[USER]\Documents\WindowsPowerShell | |
| # Default theme | |
| # oh-my-posh init pwsh | Invoke-Expression | |
| # Use another theme from home folder | |
| # oh-my-posh init pwsh --config ~\thema-test.omp.yml | Invoke-Expression | |
| # Use another theme from scoop folder | |
| # oh-my-posh init pwsh --config C:\Users\[USER]\scoop\apps\oh-my-posh\current\themes\hunk.omp.json | Invoke-Expression |
OlderNewer