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
| Simplify: Code Review and Cleanup | |
| Review all changed files for reuse, quality, and efficiency. Fix any issues found. | |
| Phase 1: Identify Changes | |
| Run git diff (or git diff HEAD if there are staged changes) to see what changed. If there are no git changes, review the most recently modified files that the user mentioned or that you edited earlier in this | |
| conversation. | |
| Phase 2: Launch Three Review Agents in Parallel |
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
| bash -c ' | |
| print_directory_content() { | |
| local dir="$1" | |
| local prefix="$2" | |
| echo "${prefix}${dir##*/}/" | |
| for item in "$dir"/*; do | |
| base_name=$(basename "$item") | |
| if [[ "$base_name" == ".next" || | |
| "$base_name" == "node_modules" || | |
| "$base_name" == "data" || |
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 duckdb from 'duckdb'; | |
| import fs from 'fs'; | |
| import readline from 'readline'; | |
| // Check if the file exists | |
| const path = '/tmp/localpy.duckdb'; | |
| const fileExists = fs.existsSync(path); | |
| // Create a new database object | |
| const db = new duckdb.Database(path); |
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 duckdb | |
| # Check if the file exists: | |
| import os | |
| path = "/tmp/localpy.duckdb" | |
| file_exists = os.path.isfile(path) | |
| con = duckdb.connect(path) | |
| con.sql("install httpfs") | |
| if not file_exists: |
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 { Database } from 'duckdb-async'; | |
| import fs from 'fs'; | |
| import readline from 'readline'; | |
| // Check if the file exists | |
| const path = '/tmp/localpy.duckdb'; | |
| const fileExists = fs.existsSync(path); | |
| const db = await Database.create(path); |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am vimota on github. | |
| * I am vimota (https://keybase.io/vimota) on keybase. | |
| * I have a public key ASAgfjz6-1RaZKeXdzSr5Yq6aAuW4cqZNoTh0wSLZps5HAo | |
| To claim this, I am signing this object: |
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
| FROM "codercom/code-server:latest" | |
| RUN apt-get install -y wget | |
| RUN wget -q https://packages.microsoft.com/config/ubuntu/18.10/packages-microsoft-prod.deb | |
| RUN dpkg -i packages-microsoft-prod.deb | |
| RUN apt-get install apt-transport-https | |
| RUN apt-get update | |
| RUN apt-get install -y dotnet-sdk-2.2 |
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
| Verifying my Blockstack ID is secured with the address 12j5XKuLqDtoQrdujTTN6JDbNLSMzPZkCR https://explorer.blockstack.org/address/12j5XKuLqDtoQrdujTTN6JDbNLSMzPZkCR |
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
| Verifying my Blockstack ID is secured with the address 12j5XKuLqDtoQrdujTTN6JDbNLSMzPZkCR https://explorer.blockstack.org/address/12j5XKuLqDtoQrdujTTN6JDbNLSMzPZkCR |
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
| for n in *; do | |
| fi="$(find ../../../../../../../ -name "$n" | grep -v 'this_directory/')"; | |
| echo $fi; | |
| if [[ ! -z "$fi" ]] rm "$(basename $fi)"; | |
| ln -s $fi . ; | |
| done |
NewerOlder