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
| Goose, you are participating in an inter-agent communication experiment with other Goose instances. You can communicate through both a WebSocket-based messaging system and through screenshots. Here are your instructions: | |
| 1. Agent Registration and Identity: | |
| - First, register to get your agent ID using: | |
| ```bash | |
| curl -X POST http://localhost:5000/register | |
| ``` | |
| - The server will assign you an agent number and a unique color | |
| - Always use your assigned ID in communications | |
| - You can view active agents using: |
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 numba | |
| import numpy as np | |
| import numba | |
| from numba import types, jit,njit, generated_jit | |
| from numba import deferred_type, optional | |
| from numba import void,b1,u1,u2,u4,u8,i1,i2,i4,i8,f4,f8,c8,c16 | |
| from numba.typed import List, Dict | |
| from numba.types import ListType, unicode_type, UnicodeType | |
| from numba.cpython.unicode import _empty_string, _set_code_point, _get_code_point, PY_UNICODE_1BYTE_KIND | |
| from numba.extending import overload, overload_method |
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 pandas as pd | |
| import re | |
| space_splitter = re.compile("\s+") | |
| regex = re.compile("\s*(.*)\s*>\s*(.*?):\s.*") | |
| def parse_line(line): | |
| try: | |
| elements = space_splitter.split(line) | |
| source_dest = regex.match(" ".join(elements[4:])).groups() |
For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.
You can download Windows 10 or Windows 11 directly from Microsoft.
After plugging the drive to your machine, identify the name of the USB device using diskutil list, which should return an output like the one below. In my case, the correct disk name is disk2.
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 python | |
| # Test with PyXA 0.1.0 | |
| import PyXA | |
| safari = PyXA.Application("Safari") | |
| notes = PyXA.Application("Notes") | |
| # Get info for current Safari tab | |
| current_tab = safari.front_window.current_tab |
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 PyXA, math | |
| from PIL import Image | |
| # Execute Automator workflow and receive list of image paths | |
| automator = PyXA.Application("Automator") | |
| workflow = automator.open("/Users/exampleuser/Library/Mobile Documents/com~apple~Automator/Documents/Ask For Photos.workflow") | |
| image_paths = workflow.execute() | |
| # Set base dimensions of mosaic images | |
| base_width = 400 |
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
| # Tested with PyXA 0.1.0 | |
| import PyXA | |
| app = PyXA.Application("Shortcuts") | |
| folders = app.folders() | |
| # Method 1 - Standard iteration | |
| summary = [] | |
| for folder in folders: | |
| folder_name = folder.name | |
| num_shortcuts = len(folder.shortcuts()) |
There's some mysql specifics, but it's mostly generic
help: ## show help message
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[$$()% a-zA-Z_-]+:.*?##/ { printf " \033[36m%-25s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
SHELL := /bin/bash
unit := 0
app := $(shell yq '.name' metadata.yaml)
scale := 3NewerOlder