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 -e | |
| # Create unique temp directory and ensure cleanup on exit | |
| TMPDIR=$(mktemp -d) | |
| trap 'rm -rf "$TMPDIR"' EXIT | |
| ARCH="$(uname -m)" # expects 'x86_64' or 'arm64' | |
| # Map architecture for Docker Compose and Docker CLI (use aarch64 instead of arm64) |
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 | |
| # Check formatting | |
| # This used to just enforce a check, but it was silly watching the agent attempting | |
| # the commit two or three times after trying to fix the formatting by hand | |
| FILES=$(git diff --cached --name-only --diff-filter=ACMRTUXB | grep -E '(.*\.(rs))$') | |
| echo "Running formatting with cargo fmt..." | |
| cargo fmt -- $FILES | |
| git add $FILES |
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 | |
| # A git wrapper to prevent the use of '--no-verify' on commits. | |
| # This ensures that all pre-commit hooks, such as linters and tests, are always executed. | |
| # Find the absolute path to the real git executable, avoiding this script itself. | |
| # 'command -v' is a reliable way to find the first 'git' in the PATH. | |
| REAL_GIT=$(command -v git) | |
| # If this script is the first 'git' in the PATH, we need to find the *next* one. |
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 | |
| # Check formatting | |
| echo "Checking formatting with cargo fmt..." | |
| if ! cargo fmt --all -- --check; then | |
| echo "Error: Code is not formatted. Please run 'cargo fmt --all' before committing." | |
| exit 1 | |
| fi | |
| # Run Clippy linter |
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
| #![allow(incomplete_features)] | |
| #![feature(specialization)] | |
| use std::cmp::min; | |
| use std::io; | |
| use std::io::{Read, Seek, SeekFrom}; | |
| pub trait ReadSeek: Read + Seek {} | |
| impl<T: Read + Seek> ReadSeek for T {} |
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
| ./.fseventsd/fseventsd-uuid | |
| ./System/Library/Accounts/DataclassOwners/Bookmarks.bundle/Bookmarks | |
| ./System/Library/Accounts/DataclassOwners/Bookmarks.bundle/Info.plist | |
| ./System/Library/Accounts/Notification/WebBookmarksNotificationPlugin.bundle/Info.plist | |
| ./System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64e | |
| ./System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64e.01 | |
| ./System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64e.02 | |
| ./System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64e.03 | |
| ./System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64e.04 | |
| ./System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64e.05 |
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 requests | |
| input_data['success'] = 'false' | |
| captcha = input_data.get('captcha') | |
| if captcha is None: | |
| return input_data | |
| body = { | |
| 'secret': 'SECRET', |
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
| # fly.toml file generated for notcheckmark on 2022-05-20T23:24:53-04:00 | |
| app = "notcheckmark" | |
| kill_signal = "SIGINT" | |
| kill_timeout = 5 | |
| processes = [] | |
| [build] | |
| image = "ghost:alpine" |
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
| func testFoundationDouble() { | |
| let locales: [Locale] = [Locale(identifier: "en_US"), Locale(identifier: "de_DE"), Locale(identifier: "es_AR"), Locale(identifier: "es_ES"), Locale(identifier: "es_MX"), Locale(identifier: "fr_FR")] | |
| let numbers: [Double] = [0.01, 0.1, 1, 1_100.10, 100_000_000] | |
| for locale in locales { | |
| let nf = NumberFormatter() | |
| nf.locale = locale | |
| nf.groupingSize = 3 | |
| nf.usesGroupingSeparator = true | |
| nf.minimumSignificantDigits = 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
| CREATE TABLE _SqliteDatabaseProperties (key TEXT, value TEXT, UNIQUE(key)); | |
| CREATE TABLE deleted_messages (ROWID INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, guid TEXT NOT NULL); | |
| CREATE TABLE sqlite_sequence(name,seq); | |
| CREATE TABLE chat_handle_join (chat_id INTEGER REFERENCES chat (ROWID) ON DELETE CASCADE, handle_id INTEGER REFERENCES handle (ROWID) ON DELETE CASCADE, UNIQUE(chat_id, handle_id)); | |
| CREATE TABLE sync_deleted_messages (ROWID INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, guid TEXT NOT NULL, recordID TEXT ); | |
| CREATE TABLE message_processing_task (ROWID INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, guid TEXT NOT NULL, task_flags INTEGER NOT NULL ); | |
| CREATE TABLE handle (ROWID INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, id TEXT NOT NULL, country TEXT, service TEXT NOT NULL, uncanonicalized_id TEXT, person_centric_id TEXT, UNIQUE (id, service) ); | |
| CREATE TABLE sync_deleted_chats (ROWID INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, guid TEXT NOT NULL, recordID TEXT,timestamp INTEGER); | |
| CREATE TABLE message_attachment_join |
NewerOlder