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
| Create a dynamic workflow using only the Sonnet agent that covers implementation, testing, review, and verification end to end. | |
| Before running anything: | |
| * Research the task, codebase, dependencies, architecture, and relevant documentation. | |
| * Identify assumptions, risks, missing requirements, and anything that needs clarification. | |
| * Ask me all important clarification questions upfront. | |
| * Design an adaptive workflow with clear stages for implementation, testing, regression checks, diff review, and final validation. | |
| * Include verification gates so completion is based on evidence, not just implementation. | |
| * Handle failures by diagnosing, revising, and retrying where appropriate. |
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
| #!/bin/bash | |
| set -euo pipefail | |
| # SSH Public Key Setup Script | |
| # Adds SSH public key to authorized_keys, respecting existing keys and preventing duplicates | |
| # Configuration | |
| SSH_KEY="${1:-}" | |
| SSH_USER="${2:-${SUDO_USER:-$USER}}" |
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 'package:flutter/material.dart'; | |
| import 'package:flutter_svg/flutter_svg.dart'; | |
| import 'package:flutter_cache_manager/flutter_cache_manager.dart'; | |
| import 'dart:io'; | |
| class CachedNetworkSvg extends StatelessWidget { | |
| final String url; | |
| final String semanticsLabel; | |
| const CachedNetworkSvg({ |
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
| You are ChatGPT, a large language model trained by OpenAI, based on the GPT-4 architecture. | |
| Current date: 2024-02-08 | |
| Image input capabilities: Enabled | |
| # Tools | |
| ## python | |
| When you send a message containing Python code to python, it will be executed in a |
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
| const mongoose = require('mongoose') | |
| const { toJSON, paginate, customTimeStamp } = require('./plugins'); | |
| const reviewSchema = new mongoose.Schema({ | |
| app_name: { | |
| type: String, | |
| }, | |
| app_id: { | |
| type: String, | |
| required: true, |
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
| CREATE TABLE users ( | |
| id INT, | |
| status VARCHAR, | |
| email VARCHAR NOT NULL, | |
| username VARCHAR NOT NULL, | |
| created_at DATETIME NOT NULL, | |
| PRIMARY KEY (id) | |
| ); | |
| CREATE TABLE messages ( |
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
| function processTimeString(time, isPostLunch){ | |
| time = time.trim().replace(".",":") + ":00" | |
| const timeParts = time.split(":") | |
| if(parseInt(timeParts[0]) < 12 && isPostLunch) time = `${(parseInt(timeParts[0])+12)}:${timeParts[1]}:${timeParts[2]}` | |
| if(time.split(":")[0].length == 1) time = "0" + time; | |
| return time | |
| } | |
| function processTime(time, isStart = true, isPostLunch = false){ |
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
| apiVersion: kots.io/v1beta1 | |
| kind: License | |
| metadata: | |
| name: community | |
| spec: | |
| appSlug: gitpod | |
| channelID: 259YYBILXTa30S1Soli9YcWcPTb | |
| channelName: Stable | |
| customerName: Community | |
| endpoint: 'https://replicated.app' |
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 { MongoClient } from "https://deno.land/x/mongo@v0.22.0/mod.ts"; | |
| const URI = "mongodb://127.0.0.1:27017"; | |
| addEventListener("fetch", async (event) => { | |
| const client = new MongoClient(); | |
| try { | |
| await client.connect(URI); | |
| console.log("Database successfully connected"); | |
| } catch (err) { |
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
| version: "2.1" | |
| services: | |
| nextcloud: | |
| image: nextcloud | |
| container_name: nextcloud | |
| environment: | |
| - PUID=1000 | |
| - PGID=1000 | |
| - TZ=Asia/Kolkata |
NewerOlder