Associative Array Group And Count
Group and count items using a bash associative array as a frequency map with iteration over sorted keys.
Group and count items using a bash associative array as a frequency map with iteration over sorted keys.
Use awk to aggregate fields by key with conditional logic and formatted output for log analysis.
Process files in batches using find with exec and a batch size limit to avoid argument list overflow.
Parse command line options using bash getopts with validation, default values, and usage messages.
Generate a config file from a here document template with variable expansion and command substitution.
Run background jobs in parallel with a concurrency limit and wait for all to complete collecting exit statuses.
Use bash parameter expansion for default values, substring extraction, and pattern removal in a single script.
Compare two command outputs without temp files using bash process substitution with the diff command.
Use bash regex conditional matching with BASH_REMATCH to extract capture groups from structured input strings.
Perform in place stream editing with sed using a backup suffix and multiple expression commands for safe text transformation.
Register a trap handler to clean up temporary resources on exit, interrupt, and termination signals.
Ensure only one script instance runs with flock file locking to prevent concurrent execution.
Parse CLI subcommands and options with getopts for shell script tooling.
Register trap handlers for cleanup on exit signal and error for safe scripts.
Maintain a fixed aspect ratio for responsive media containers using the CSS aspect-ratio property without padding hacks.
Create fluid typography that scales between minimum and maximum sizes using the CSS clamp function with viewport units.
Render a pie chart using only CSS conic gradient with multiple segments and a transparent center for a donut effect.
Make a card component responsive to its container size rather than the viewport using CSS container queries.
Implement a theming system using CSS custom properties with light and dark variants toggled by a data attribute.
Create a sticky footer layout using flexbox with a column direction and auto margin on the main content area.
Style keyboard only focus indicators using focus-visible to show outlines only for keyboard navigation not mouse clicks.
Create a named grid layout using template areas for an app shell with header, sidebar, main, and footer regions.
Build a native scroll snapping carousel using CSS scroll-snap with mandatory snapping and hidden scrollbars.
Synchronize nested grid columns with the parent using CSS subgrid for consistent alignment across complex layouts.
Use container queries for component-level responsive design independent of viewport.
Style form fields based on validity with :has and :user-invalid for pure CSS feedback.
Find the leftmost position where a sorted slice can accept a target using a Go binary search lower bound variant.
Generate a Gray code sequence of n bits in Go using bit manipulation where consecutive values differ by one bit.
Implement a Go bloom filter with k hash functions for probabilistic membership testing.
Implement a Go binary search tree supporting insert and delete using in-order successor for two-child nodes.
Compute single source shortest paths in a weighted Go graph using Dijkstra with container heap.
Compute the Levenshtein edit distance between two Go strings with insert, delete, and substitute operations.
Find the shortest path in an unweighted Go graph using BFS with a predecessor map for path reconstruction.
Perform topological sort on a Go DAG using DFS with cycle detection via tri-color marking.
Sort a Go slice by building a max heap in place then repeatedly extracting the maximum to the end.
Match a pattern in Go text using KMP with a precomputed failure function for linear time matching.
Solve the 0-1 knapsack problem in Go using dynamic programming with a rolling array for space optimization.
Compute the longest common subsequence of two Go strings using dynamic programming with table reconstruction.
Count inversions in a slice using a modified Go mergesort that counts crossings during the merge step.
Generate all primes up to n in Go using a segmented sieve of Eratosthenes for memory efficiency.
Sort a slice in place using Go quicksort with median-of-three pivot selection to avoid worst-case behavior.
Find all occurrences of a pattern in Go text using Rabin Karp with a rolling hash for O(n+m) average time.
Build a Go trie from a word list supporting prefix search and autocomplete suggestions ranked by frequency.
Implement a Go disjoint set union find with path compression and union by rank for near constant amortized time.
Reload configuration atomically using atomic.Value for zero-downtime config updates.
Encode a file to base64 in chunks for memory-efficient binary data transport.
Use bounded channels for backpressure in Go pipelines between producer and consumer.
Check if an IP address is within allowed CIDR ranges for network access control.
Implement a circuit breaker with state transitions and metrics for Go service protection.
Build a CLI with Cobra supporting flags subcommands and config precedence.
Set timeouts on HTTP client requests using context for preventing hanging connections.
Load config from environment variables with defaults and validation in Go.
Fan out parallel API calls with errgroup and limit concurrency in Go services.
Run parallel HTTP fetches with errgroup for concurrent fanout with first-error cancellation.
Use file locks for cross-process critical sections with flock in Go applications safely.
Use Go generics with type constraints for type-safe min and max functions.
Run tasks in a bounded goroutine pool with a job channel for controlled concurrency.
Log HTTP requests with a middleware including method path status and duration.
Implement a token bucket rate limiter as HTTP middleware for Go API throttling.
Retry operations with exponential backoff and jitter in Go for transient error handling.
Use weighted semaphore for concurrency limiting with different resource weights.
Create a native disclosure widget using the details and summary elements with custom styling and open event handling.
Create a native modal dialog using the dialog element with showModal and form method close for accessible interactions.
Wrap images with semantic captions using the figure and figcaption elements for accessible content illustration.
Provide native autocomplete suggestions using the datalist element paired with a text input for enhanced UX.
Display live calculation results using the output element bound to form inputs with the for attribute.
Serve responsive images with art direction using the picture element and multiple source tags with media queries.
Display task completion using native progress and meter elements with accessible labels and value bounds.
Apply column level styling and spanning using colgroup and col elements for efficient table layout control.
Define a reusable component using template and slot elements inside a shadow DOM root for encapsulation.
Encode machine readable timestamps using the time element with datetime attribute for SEO and accessibility.
Use the dialog element for accessible modals with focus trapping and close on backdrop.
Show form validation errors in an accessible summary with aria-live and focus management.
Make HTML tables sortable with accessible buttons and aria-sort for screen readers.
Find the leftmost position where a sorted Java array can accept a target using a binary search lower bound variant.
Generate a Gray code sequence of n bits in Java using bit manipulation where consecutive values differ by one bit.
Implement a Java bloom filter with k hash functions for probabilistic membership testing.
Implement a Java binary search tree supporting insert and delete using in-order successor for two-child nodes.
Compute single source shortest paths in a weighted Java graph using Dijkstra with PriorityQueue.
Compute the Levenshtein edit distance between two Java strings with insert, delete, and substitute operations.
Find the shortest path in an unweighted Java graph using BFS with a predecessor map for path reconstruction.
Sort a Java array by building a max heap in place then repeatedly extracting the maximum to the end.
Solve the 0-1 knapsack problem in Java using dynamic programming with a rolling array for space optimization.
Compute the longest common subsequence of two Java strings using dynamic programming with table reconstruction.
Count inversions in a Java array using a modified mergesort that counts crossings during the merge step.
Sort a Java array in place using quicksort with median-of-three pivot selection to avoid worst-case behavior.
Find all occurrences of a pattern in Java text using Rabin Karp with a rolling hash for O(n+m) average time.
Build a Java trie from a word list supporting prefix search and autocomplete suggestions ranked by frequency.
Implement a Java disjoint set union find with path compression and union by rank for near constant amortized time.
Chain async operations with CompletableFuture thenCompose for dependent async stages.
Use pattern matching with switch on sealed types for exhaustive handling.
Define immutable records with compact constructors for validation in Java applications.
Group and partition streams with Collectors for functional data aggregation.
Auto-close resources with try-with-resources and handle suppressed exceptions.
Find the leftmost position where a sorted array can accept a target using binary search with a lower-bound variant that returns insertion index for duplicates.
Generate a Gray code sequence of n bits using bit manipulation where consecutive values differ by exactly one bit.
Implement a bloom filter with k hash functions for probabilistic membership testing with a configurable false positive rate.
Implement a binary search tree supporting insert and delete where delete uses the in-order successor for two-child nodes.
Compute single source shortest paths in a weighted graph using Dijkstra algorithm with a binary min heap for efficient extraction.
Compute the Levenshtein edit distance between two strings with insert, delete, and substitute operations each costing one.
No examples match the selected filters. Try clearing one of them.