Created using the following ChatGPT conversation: https://chat.openai.com/share/9cac1fad-851d-4f43-87da-17d64b3f4e02
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
{ | |
"name": "Dactyl Manuform (5x6+6)", | |
"vendorId": "0xFDDD", | |
"productId": "0x06AD", | |
"lighting": "none", | |
"matrix": { "rows": 12, "cols": 6 }, | |
"layouts": { | |
"keymap": [ | |
[{ "x": 3 }, "0,3", { "x": 8.5 }, "6,2"], | |
[ |
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
""" | |
An example of nested fanout using Ray Workflows. | |
The full workflow creates several batches given a single input, then each of those batches is fanned-out and evaluated. | |
""" | |
import time | |
import ray | |
from ray import workflow |
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
import concurrent.futures | |
import random | |
import time | |
import ray | |
@ray.remote | |
def append_a(in_str): | |
print(in_str) | |
time.sleep(random.uniform(0, 1.5)) |
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
def hello(name): | |
return "Hello" + name | |
name = input("Enter your name: ") | |
print(hello(name)) |
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
[tool.pylint.messages_control] | |
disable = [ | |
"arguments-differ", | |
"attribute-defined-outside-init", | |
"bad-continuation", | |
"blacklisted-name", | |
"duplicate-code", | |
"fixme", | |
"import-error", | |
"no-member", |
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
def append_number(num, numbers=None): | |
if numbers is None: | |
numbers = [] | |
numbers.append(num) | |
return numbers |
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
def append_number(num, numbers=[]): | |
numbers.append(num) | |
return numbers |
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
def hello (name): | |
return"Hello"+name | |
name = input("Enter your name: ") | |
print(hello(name )) |
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
# requires yq and jq to be installed | |
kubectl get pods $1 -o yaml | yq .metadata.annotations.\"workflows.argoproj.io/template\" | jq -r | jq |
NewerOlder