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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>AWS Bedrock Chat</title> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5/dist/css/bootstrap.min.css" /> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1/font/bootstrap-icons.min.css" /> | |
| <style> | |
| :root { |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Angular 21</title> | |
| <script type="importmap"> | |
| { | |
| "imports": { | |
| "@angular/core": "https://cdn.jsdelivr.net/npm/@angular/core@21/fesm2022/core.mjs", | |
| "@angular/core/primitives/signals": "https://cdn.jsdelivr.net/npm/@angular/core@21/fesm2022/primitives-signals.mjs", |
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
| /*! | |
| * Bootstrap–USWDS Theme | |
| */ | |
| /* -------------------------------------------------------------------------- */ | |
| /* 1) Curated USWDS System Tokens */ | |
| /* -------------------------------------------------------------------------- */ | |
| :root { | |
| /* --- Primary Action (Blue) --- */ |
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
| /** | |
| * Advanced Window Snap | |
| * Snaps the active window to a position within a user-defined grid. | |
| * | |
| * @author Andrew Moore <andrew+github@awmoore.com> | |
| * @contributor jballi | |
| * @contributor park-brian | |
| * @contributor shinywong | |
| * @version 1.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
| import http from "http"; | |
| import { once } from "events"; | |
| import NatUpnp from "./nat-upnp.js"; | |
| const mapping = { | |
| public: 8081, | |
| private: 8080, | |
| protocol: "TCP", | |
| description: "Node.js server", | |
| ttl: 0, |
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
| #!/usr/bin/env node | |
| const fs = require("fs"); | |
| const path = require("path"); | |
| const vm = require("vm"); | |
| const util = require("util"); | |
| const { OpenAI } = require("openai"); | |
| const [inputFile, attemptsArg, model = "deepseek-reasoner"] = process.argv.slice(2); | |
| const maxAttempts = parseInt(attemptsArg) || 5; | |
| const maxTokens = 8000; |
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
| /** | |
| SMILES Rules: | |
| Atoms: | |
| Represented by their atomic symbols. | |
| Common organic elements (B, C, N, O, P, S, F, Cl, Br, I) can be written without brackets if they have no formal charge and the number of attached hydrogens is implied by typical valence. | |
| Atoms outside this set or with explicit hydrogens, charges, or isotopes are enclosed in brackets, e.g., [Fe], [OH2], [13C]. | |
| Bonds: |
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
| /** | |
| * Retrieves byte ranges from a URL using the Fetch API. | |
| * Uses ASCII encoding for direct byte<->text position mapping. | |
| * | |
| * @param {Object} options | |
| * @param {string} options.url - Source URL | |
| * @param {(number[]|null)[]} options.ranges - Array of [start, end] pairs (end is exclusive) | |
| * @param {RequestInit} options.requestInit - Fetch API configuration | |
| * @param {boolean} [options.trustContentType=false] - Whether to trust multipart boundary from content-type header | |
| */ |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>GistRun</title> | |
| <link rel="stylesheet" href="styles.css"> | |
| </head> | |
| <body> | |
| <input id="height" placeholder="Height"> | |
| <input id="width" placeholder="Width"> |
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 sleep(ms) { | |
| return new Promise((resolve) => setTimeout(resolve, ms)); | |
| } | |
| async function insertDynamoDBItems(documentClient, tableName, items) { | |
| if (!items.length) return; | |
| let responses = []; | |
| let response = await documentClient | |
| .batchWrite({ |
NewerOlder