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
| {"shasum":"c22a001bea2241defb15d0124939836170389daf", | |
| "tarball":"https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-2.1.88.tgz", | |
| "fileCount":20, | |
| "integrity":"sha512-ukMtYZCi0I7cD3rt89rnXy20D/Zvk0Gj/SW60xYfz17zTslLz+VuhXw/KPb+2ndp3/ATadJdyNEqdKQlcNk7nQ==", | |
| "signatures":[{"sig":"MEUCIHXjhm3IsYM1o1worSMkPW8rIHqSNsV6D08wJoIArNumAiEAtiif6ZPqt/ovlEXSM0sEc8NuCteOb+yIkDZcff2kFSk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}], | |
| "unpackedSize":102754401} |
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
| > uv run robotpy test -j 2 | |
| ================================================= test session starts ================================================= | |
| platform win32 -- Python 3.14.2, pytest-9.0.2, pluggy-1.5.0 | |
| rootdir: C:\Users\David\git\thedropbears\pyrebuilt | |
| configfile: pyproject.toml | |
| testpaths: tests | |
| plugins: hypothesis-6.119.3, integration-0.2.3, reraise-2.1.2 | |
| collected 26 items | |
| tests/pyfrc_test.py::test_operator_control |
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
| import collections.abc | |
| import datetime | |
| import sys | |
| import photonlibpy.packet | |
| import photonlibpy.photonPipelineResult | |
| import wpiutil.log | |
| def main() -> None: |
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
| #!/usr/bin/env python3 | |
| # solution for this image is blank [2/3] | |
| from PIL import Image | |
| from PIL.ImagePalette import ImagePalette | |
| im = Image.open('blank.png') # <PIL.PngImagePlugin.PngImageFile image mode=P size=800x600 at 0xf00> | |
| im.putpalette(ImagePalette('RGB', [0, 0, 0, 0xff, 0xff, 0xff], 6).getdata()[1]) | |
| im.save('blank2.png') |
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
| indexedDB.open('matrix-js-sdk:crypto').onsuccess = (e) => e.target.result.transaction('device_data').objectStore('device_data').get('-').onsuccess = (e) => { | |
| for (let [mxid, user_devices] of Object.entries(e.target.result.devices)) | |
| for (let [device_id, device] of Object.entries(user_devices)) | |
| if (device.verified === 1) | |
| console.log('/verify', mxid, device_id, device.keys['ed25519:' + device_id]); | |
| } |
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
| >>> math.copysign((-1) ** 0.5, Fraction(-1, 1)) | |
| TypeError: can't convert complex to float | |
| The above exception was the direct cause of the following exception: | |
| Traceback (most recent call last): | |
| File "<stdin>", line 1, in <module> | |
| File "/usr/lib/python3.8/numbers.py", line 291, in __float__ | |
| return self.numerator / self.denominator | |
| SystemError: PyEval_EvalFrameEx returned a result with an error set |
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
| import math | |
| import pytest | |
| import wpimath | |
| from hypothesis import given | |
| from hypothesis.strategies import floats | |
| def constrain_angle_atan(angle: float) -> float: | |
| """Wrap an angle to the interval [-pi,pi].""" |
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
| roboRIO-5893-FRC:~$ # on a 2017 roboRIO image | |
| roboRIO-5893-FRC:~$ cat test.py | |
| import hal | |
| import sys | |
| import time | |
| import timeit | |
| import threading | |
| def timer(): return timeit.timeit(hal.observeUserProgramTest) |
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
| #!/usr/bin/env python3 | |
| import rev | |
| import wpilib | |
| class Robot(wpilib.TimedRobot): | |
| def robotInit(self): | |
| self.motor = rev.CANSparkMax(1, rev.MotorType.kBrushless) |
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
| { | |
| "_base": { | |
| "custom_param": [ | |
| 0, | |
| 0 | |
| ], | |
| "open_loop_ramp": 0, | |
| "closed_loop_ramp": 0, | |
| "peak_output_forward": 1, | |
| "peak_output_reverse": -1, |
NewerOlder