Shows desktop notifications with a summary of what the agent last said:
- Place AGENTS.md in
~/.config/opencode/AGENTS.md
- Place notification.ts in
~/.config/opencode/plugin/notification.ts
. |
from dataclasses import dataclass, field | |
from datetime import datetime | |
from typing import Optional, TypeVar | |
T = TypeVar("T") | |
def required() -> T: | |
f: T |
import logging | |
import inspect | |
def verbose_function(dump_args: bool = True, dump_return: bool = False, dump_args_at_exit: bool = False): | |
""" | |
Decorator to print function call details. | |
This can include: | |
* input parameters names and effective values | |
* output parameters (if they were modified by the function) |
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.
##### https://flake8.pycqa.org/en/latest/user/configuration.html | |
[flake8] | |
ignore = | |
# D100: Missing docstring at top of file | |
D100, | |
# D104: Missing docstring in __init__.py | |
D104, | |
# D401: Docstring first line should be imperative | |
D401, | |
# D101 Missing docstring in public class |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
."""Get import dependencies using PyInstaller. | |
The node types can be used to check for instances. | |
A brief description of the main ones are below: | |
MissingModule: An imported module that cannot be found. | |
Attributes: | |
identifier (str) | |
Example: | |
MissingModule('invalid.module',) |
import numpy as np | |
screen_size = 40 | |
theta_spacing = 0.07 | |
phi_spacing = 0.02 | |
illumination = np.fromiter(".,-~:;=!*#$@", dtype="<U1") | |
A = 1 | |
B = 1 | |
R1 = 1 |