better-sqlite3 issues
onlyBuiltDependencies:
- better-sqlite3| You're planning a change for the Bias Market monorepo (apps/api NestJS, apps/web Next.js, apps/workers, packages/*, infra under infra/vps). Problem/idea to solve: | |
| {{PROBLEM}} | |
| Do this in three phases. Do not touch implementation code — this task produces a plan document only. | |
| Phase 1 — Research. Read whatever's relevant before writing anything: existing code touching this area, docs/core/architecture.md, docs/core/security-payments.md or other docs/core/* docs if applicable, and any prior docs/plans/*.md that overlap (check for related/superseded decisions). Note existing conventions you must follow (e.g. multi-tenant storeId filtering, ESM/.js import extensions in apps/api, packages/db-only Postgres access, ownership-check patterns). | |
| Phase 2 — Draft the plan. Write it to docs/plans/YYYY-MM-DD-<slug>-plan.md (today's date, kebab-case slug), following the existing style in that directory: numbered/decision-based structure, explicit rationale for each nontrivial choice ("Accepted, documented limitation" call |
| cd server/requiems-api/ && git pull && cd infra/docker && docker compose up -d --build | |
| docker exec requiem-dev-api-1 go run ./cmd/seed-swift --dry-run | |
| docker exec requiem-dev-api-1 go run ./cmd/seed-swift | |
| docker cp ~/exercises.json requiem-api-1:/tmp/exercises.json && docker exec requiem-api-1 go run ./cmd/seed-exercises --data-dir /tmp --db-url \"\$DATABASE_URL\" | |
| cd infra/docker | |
| docker compose exec api go run ./cmd/seed-swift --db-url "$DATABASE_URL" |
| #!/bin/python3 | |
| from datetime import date | |
| class Employee: | |
| def __init__(self, start_date_str): | |
| self.start_date = date.fromisoformat(start_date_str) | |
better-sqlite3 issues
onlyBuiltDependencies:
- better-sqlite3| import math | |
| from collections.abc import Sequence | |
| def dot_product(vec_a: Sequence[float],vec_b: Sequence[float]) -> float: | |
| if len(vec_a) != len(vec_b): | |
| raise ValueError("Vectors must be of the same length") | |
| return sum(a * b for a, b in zip(vec_a, vec_b)) | |
| def magnitude(vec: Sequence[float]) -> float: |
| class Node: | |
| def __init__(self, val: int, next = None, prev = None): | |
| self.val = val | |
| self.next = next | |
| self.prev = prev | |
| class LinkedList: | |
| def __init__(self): | |
| self.size = 0 | |
| self.sentinel = Node(0) |
| const eventName = "dvlive"; | |
| const email = "dvlive.co"; | |
| const baseId = 2098390; | |
| const quantity = 10; | |
| console.log("PromoterLink,Name,Last name, Email"); | |
| for (let i = 1; i <= quantity; i++) { | |
| const link = `https://www.ticketfairy.com/events/${eventName}?r=${baseId + i}`; | |
| const name = `Promoter ${i}`; |
| export interface Payload { | |
| original: string; | |
| short: string; | |
| createdAt: string; | |
| } | |
| const generateRandomUrl = (): string => { | |
| const protocols = ['https://', 'http://']; | |
| const domains = ['example.com', 'test.com', 'demo.org', 'sample.net', 'random.io', 'site.co', 'web.dev', 'app.ai']; | |
| const paths = ['/', '/home', '/about', '/contact', '/products', '/services', '/blog', '/api/data', '/user/profile']; |
| import nearai | |
| import json | |
| import requests | |
| hub_url = "https://api.near.ai/v1" | |
| assistant_id = "mrh2003.near/prueba/0.0.2" | |
| # Login to NEAR AI Hub using nearai CLI. | |
| # Read the auth object from ~/.nearai/config.json | |
| auth = nearai.config.load_config_file()["auth"] |
| ORG 0 | |
| SJMP MAIN | |
| ORG 30H | |
| MAIN: | |
| MOV P1,#00H | |
| LOOP: | |
| JB P3.3,NEXT | |
| MOV P1,#00H | |
| SJMP LOOP |