- Be concise. No filler, no long intros or conclusions.
- Answer the question directly. Don’t over-explain unless asked.
- Use plain language. Prefer simple words over fancy ones.
- Avoid corporate, marketing, or motivational tone.
- If something is uncertain, say so clearly. Don’t guess.
- Don’t restate the question.
- When editing text, preserve the original tone and intent.
- When writing code, output only the code unless explanation is requested.
- Ask follow-up questions only if strictly necessary.
- Prefer practical answers over theoretical ones.
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 | |
| /* node exact-versions.cjs */ | |
| 'use strict'; | |
| const fs = require('fs'); | |
| const pkg = JSON.parse(fs.readFileSync('../package.json')); | |
| const lock = JSON.parse(fs.readFileSync('../package-lock.json')); | |
| ['dependencies', 'devDependencies'].forEach(section => { |
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
Show hidden characters
| { | |
| "compilerOptions": { | |
| /* type checking */ | |
| "strict": true, // turn on strict mode family | |
| "noFallthroughCasesInSwitch": true, // every switch case should break or return | |
| /* modules */ | |
| "baseUrl": "src", // base path for imports | |
| "module": "ESNext", // ESModules & allows «import.meta» | |
| "moduleResolution": "Node", // recommended: ts mimic node resolution | |
| "resolveJsonModule": true, // allows .json 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
| /** | |
| * For a detailed explanation regarding each configuration property, visit: | |
| * https://jestjs.io/docs/configuration | |
| */ | |
| /** @type {import('jest').Config} */ | |
| const config = { | |
| clearMocks: true, | |
| collectCoverage: true, | |
| collectCoverageFrom: ["src/**"], |
| Java | Human |
|---|---|
Consumer<T> |
(t) -> void |
BiConsumer<T,U> |
(t, u) -> void |
Supplier<R> |
() -> r |
Function<T,R> |
(t) -> r |
BiFunction<T,U,R> |
(t, u) -> r |
Predicate<T> |
(t) -> boolean |
BiPredicate<T,U> |
(t, u) -> boolean |
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 | |
| # $1 path_to_log_file | |
| if [ -z "$1" ] ; then | |
| echo "log {path_to_log_file}" | |
| exit 1 | |
| fi | |
| tail -f -n 10000 $1 | awk ' | |
| /DEBUG/ {print "\033[36m" $0 "\033[39m"} |