better-sqlite3 issues
onlyBuiltDependencies:
- better-sqlite3| 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 |
| import process from "node:process"; | |
| class Game { | |
| private state: (0 | 1 | 2)[]; | |
| private winningCombinations: number[][]; | |
| constructor() { | |
| this.state = [0, 0, 0, 0, 0, 0, 0, 0, 0]; | |
| this.winningCombinations = [ | |
| // Horizontals |