Skip to content

Instantly share code, notes, and snippets.

View AaronGoldsmith's full-sized avatar

Aaron Goldsmith AaronGoldsmith

View GitHub Profile
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:
import sys
import os
from dotenv import load_dotenv, find_dotenv
import openai
import tiktoken
# Find and load the .env file from the project root
# load_dotenv('.env')
def num_tokens_from_string(string: str) -> int:
:host{ display: block; margin-block-start: 16px; margin-block-end: 16px; white-space: normal;}
.afterpay-paragraph { font-size: 16px; margin: 0px; line-height: var(--messaging-line-height, 1.5) }
.payment-amount + span{ padding-right: 2px;}
.afterpay-logo { display:inline-block; vertical-align: middle; }
.afterpay-logo, .afterpay-logo svg { height: 36px; }
.afterpay-logo.brand-afterpay, .afterpay-logo.brand-afterpay svg {
width: var( --logo-badge-width, 104px);
min-width: 50px;
}
<ul class="payment-icons list--inline site-footer__icon-list">
{% assign enabled_payment_types = 'clearpay,afterpay,visa, master,american_express,paypal' | remove: ' ' | split: ',' %}
{% for type in enabled_payment_types %}
<li class="payment-icon">
{{ type | payment_type_svg_tag: class: 'icon icon--full-color' }}
</li>
{% endfor %}
</ul>
`Where would this merchant have found this?
<!-- Begin Afterpay Stencil Snippet for BigCommerce v1.0.9 -->
{{#if product.price.with_tax}}
{{#if currency_selector.active_currency_code "==" "USD"}}
{{#if product.price.with_tax.value ">=" 35.00}}
{{#if product.price.with_tax.value "<=" 1000.00}}
<p class="afterpay-paragraph" style="display:block; font-size:14px; text-transform:none;" data-currency={{currency_selector.active_currency_code}}>
<span class ="afterpay-text1"> or 4 installments of
<strong class="afterpay-instalments">${{toFixed (divide product.price.with_tax.value 4) 2}}&nbsp;{{currency_selector.active_currency_code}}</strong>
with </span>
[
{
"id": 1,
"title": "ABC"
},
{
"id": 2,
"title": "DEF"
},
{
<div id="root"></div>
@AaronGoldsmith
AaronGoldsmith / helpers.py
Created December 21, 2018 23:43
Robot City Design created by AaronGoldsmith_ - https://repl.it/@AaronGoldsmith_/Robot-City-Design
# Using discrete math to solve turning
# 0 N
# 3 1 --> W E
# 2 S
def turn(LR,current_dir):
if(LR=="L"):
current_dir += 3;
else:
current_dir += 1;
return current_dir%4;
@AaronGoldsmith
AaronGoldsmith / helpers.py
Created December 21, 2018 23:43
Robot City Design created by AaronGoldsmith_ - https://repl.it/@AaronGoldsmith_/Robot-City-Design
# Using discrete math to solve turning
# 0 N
# 3 1 --> W E
# 2 S
def turn(LR,current_dir):
if(LR=="L"):
current_dir += 3;
else:
current_dir += 1;
return current_dir%4;
@AaronGoldsmith
AaronGoldsmith / index.html
Created December 11, 2018 06:57
React Dropdown
<div id="root"></div>