Skip to content

Instantly share code, notes, and snippets.

View helloworld's full-sized avatar

Sashank Thupukari helloworld

View GitHub Profile
powershell -ExecutionPolicy ByPass -c "irm https://gist.githubusercontent.com/helloworld/89d2f29a023f92c79f753e53162de799/raw/453f27d6443441355b525c1bae82428d0e8859de/uv-custom.ps1 | iex"

Welcome to Exponent, your AI pair programmer!

IF YOU RECEIVED AN INVITATION EMAIL: follow the instructions in the invitiation to sign in, then begin at step 3.

  1. Navigate to https://exponent.run in your browser and click "Sign in" in the top right.
Screenshot 2024-11-05 at 11 08 13 AM
  1. Sign in using your Microsoft or Google account.
  2. Once you are logged in, click through the product description screens. You do not need to install the desktop app yet.

How Canvas Works

This is summary (genererated by Exponent) based on a series of experiments and a close examination of the websocket traffic between the client and the AI.

Experiment Setup

We conducted a multi-part experiment to understand Canvas's behavior:

  1. Generate a Python script for sending daily email reports.
  2. Rename a function within the script.
This file has been truncated, but you can view the full file.
{
"asset": {
"version": "2.0",
"generator": "THREE.GLTFExporter r165"
},
"scenes": [
{
"name": "AuxScene",
"nodes": [
LangChain
WandB
Scale AI
HumanLoop
Vellum
Fiddler
Arize
Arthur
Galileo
Inductor
============================= test session starts ==============================
platform linux -- Python 3.10.8, pytest-7.2.0, pluggy-1.0.0 -- /usr/local/bin/python
cachedir: .pytest_cache
rootdir: /tmp/tmp4p82sops
plugins: ddtrace-1.5.2, anyio-3.6.2
collecting ... collected 4 items
test.py::test_hello_world PASSED [ 25%]
test.py::test_hello_world_with_name PASSED [ 50%]
test.py::test_hello_world_with_name_and_age PASSED [ 75%]
~/pr/gpt-coder/test_runner master !52 ?169 ❯ python main.py  gpt-coder 3.10 16:39:36
️️⚡️ Serving... hit Ctrl-C to stop!
└── Watching /Users/sashank/projects/gpt-coder/test_runner/main.py.
✓ Initialized. View app at https://modal.com/apps/ap-qfqInd1MLwOOrMzQdptsAQ
╭──────────────────────────── Traceback (most recent call last) ────────────────────────────╮
│ /Users/sashank/projects/gpt-coder/test_runner/main.py:91 in <module> │
│ │
│ 90 if __name__ == "__main__": │
│ ❱ 91 │ stub.serve() │
│ 92 │
import modal
pytest_image = modal.Image.debian_slim().pip_install(["pytest"])
stub = modal.Stub()
code = """
def hello_world(name=None, age=None, city=None):
return 'Hello World!'
const colors = require('tailwindcss/colors')
module.exports = {
purge: [],
presets: [],
darkMode: false, // or 'media' or 'class'
theme: {
screens: {
sm: '640px',
md: '768px',
from dagster import pipeline, solid, RepositoryDefinition, InputDefinition, execute_pipeline, DagsterInstance
@solid(input_defs=[InputDefinition("number", int)])
def process(context, number):
context.log.info("Number: {}".format(number))
@solid
def root(context):
numbers = [1, 2, 3, 4, 5]
for number in numbers: