This file contains 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
""" | |
Configuration example for ``ptpython``. | |
Copy this file to $XDG_CONFIG_HOME/ptpython/config.py | |
On Linux, this is: ~/.config/ptpython/config.py | |
On macOS, this is: ~/Library/Application Support/ptpython/config.py | |
""" | |
from prompt_toolkit.filters import ViInsertMode | |
from prompt_toolkit.key_binding.key_processor import KeyPress |
This file contains 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 wezterm = require("wezterm") | |
-- "./config/wezterm/local_values.lua" | |
local local_values = require("local_values") | |
local config = wezterm.config_builder() | |
local mux = wezterm.mux | |
wezterm.on("gui-attached", function(_) | |
-- maximize all displayed windows on startup |
This file contains 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
-- remember, doc comments starts with --- (three dashes). | |
local a = collectgarbage("count") * 1024 | |
--- Docs for SuperClass (this is a Metatable) | |
local SuperClass = { | |
__tostring = function() | |
return "SuperClass.__tostring method." | |
end, | |
} |
This file contains 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
-- remember, doc comments starts with --- (three dashes). | |
local a = collectgarbage("count") * 1024 | |
local function SuperClassBuilder() | |
--- Docs for the SuperClass instance | |
--- @class SuperClass | |
local self = { | |
--- Docs for inherited_method (public) | |
inherited_method = function() |
This file contains 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
-- remember, doc comments starts with --- (three dashes). | |
local a = collectgarbage("count") * 1024 | |
--- Docs for SuperClass (this is a Metatable) | |
local SuperClass = { | |
__tostring = function() | |
return "SuperClass.__tostring method." | |
end, | |
} |
This file contains 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
#!/usr/bin/env bash | |
set-option -g focus-events on | |
set-option -sg escape-time 10 | |
set-option -g default-shell /bin/zsh | |
setw -g status-position top | |
set -g mouse on | |
# Start windows and panes at 1 for better ergonomics when switching between them. | |
set -g base-index 1 |
This file contains 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
# List the start-up tasks. Learn more: https://www.gitpod.io/docs/configure/workspaces/tasks | |
tasks: | |
- name: Install Modular & Mojo | |
before: | | |
eval $(command gp env -e) | |
command: | | |
curl https://get.modular.com | MODULAR_AUTH=$MODULAR_AUTH sh - | |
modular install mojo | |
echo 'export MODULAR_HOME="/home/gitpod/.modular"' >> ~/.zshrc | |
echo 'export PATH="/home/gitpod/.modular/pkg/packages.modular.com_mojo/bin:$PATH"' >> ~/.zshrc |
This file contains 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
[mypy] | |
# follow_imports = 'skip' | |
# follow_imports_for_stubs = True | |
ignore_missing_imports = True | |
disallow_untyped_calls = False | |
disallow_untyped_decorators = False | |
disable_error_code = attr-defined, name-defined, no-any-return | |
warn_unused_ignores = True | |
strict = True |
This file contains 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
#!/usr/bin/env -S v -raw-vsh-tmp-prefix tmp run | |
import v.pref { vexe_path } | |
import term { magenta } | |
system('v up') | |
chdir(dir(vexe_path()))! | |
c := magenta |