Code Snippets
779 reusable code snippets across 81 languages — copy and paste practical examples for sorting, array methods, async patterns, and common programming tasks.
Sort Dictionary by Value
PythonSort a Python dictionary by its values in descending order.
Array Map Filter Reduce
JavaScriptChain map, filter, reduce, find, some, and every on arrays.
Struct with Methods
RustDefine a Rust struct and implement methods with self and Self.
String Operations and StringBuilder
JavaManipulate strings with split, join, substring, and StringBuilder in Java.
SELECT with WHERE and ORDER BY
SQLFilter, sort, and limit rows with SELECT, WHERE, and ORDER BY in SQL.
Accessible Form with Inputs
HTMLBuild an accessible HTML form with labels, inputs, select, and checkbox.
Table with Thead Tbody Tfoot
HTMLStructure tabular data with thead, tbody, tfoot, and caption in HTML.
Responsive Images and Video
HTMLEmbed responsive images with srcset, video, audio, and figure in HTML.
Links Anchors and Download
HTMLCreate internal, external, anchor, email, phone, and download links in HTML.
Center a Div with Flexbox and Grid
CSSCenter elements horizontally and vertically using Flexbox, Grid, and absolute positioning.
CSS Selectors and Pseudo-classes
CSSTarget elements with pseudo-classes, pseudo-elements, and attribute selectors.
Controlled Form with Validation
ReactBuild a controlled React form with inline validation and error messages.
Event Handling and List Rendering
ReactHandle events and render dynamic lists with keys in React.
Manage Remotes and Push Pull
GitAdd, change, and interact with remote repositories in Git.
View Commit History with git log
GitBrowse, filter, and format commit history with git log options.
Variables and Arrays in Bash
BashAssign variables, use command substitution, and work with arrays in Bash.
Arrays and Array Functions in PHP
PHPCreate indexed, associative, and multidimensional arrays with map and filter.
String Functions in PHP
PHPManipulate strings with substr, replace, explode, and sprintf in PHP.
Read and Write Files in PHP
PHPRead, write, append, and iterate files with PHP filesystem functions.
PDO Database Queries in PHP
PHPConnect and run prepared statements safely with PDO in PHP.
Sessions and Cookies in PHP
PHPStore user data across requests with sessions and cookies in PHP.
Classes and Inheritance in PHP
PHPDefine classes with constructors, visibility, and inheritance in PHP.
Array Deduplication
JavaScriptDeduplicate an array using Set.
Deep Clone
JavaScriptDeep clone objects, supporting common data types.
Debounce Function
JavaScriptWait a period of time after an event triggers before executing; reset the timer if triggered again during the wait.
Throttle Function
JavaScriptLimit a function to execute at most once within a time interval.
Promise.all Concurrency Control
JavaScriptA Promise executor with concurrency limit.
async/await Error Handling
JavaScriptWrap async functions to uniformly catch exceptions.
Fetch Wrapper
JavaScriptWrap fetch with timeout, error handling, and JSON parsing.
localStorage Operations
JavaScriptWrap localStorage with expiration time and JSON support.
Cookie Operations
JavaScriptWrap Cookie read, write, and delete operations.
URL Parameter Parsing
JavaScriptParse URL query string into an object.
Date Formatting
JavaScriptFormat a date into a specified string.
Money Formatting
JavaScriptFormat a number as a thousands-separated money string.
Random Number Generation
JavaScriptGenerate random numbers and random strings within a range.
Color Conversion
JavaScriptConvert between RGB and HEX colors.
UUID Generation
JavaScriptGenerate a unique identifier compliant with UUID v4.
String Truncation
JavaScriptTruncate a string and append an ellipsis.
Array Flattening
JavaScriptFlatten a multi-dimensional array into one dimension.
Object Merging
JavaScriptDeeply merge multiple objects.
Type Checking
JavaScriptPrecisely determine JavaScript data types.
Event Delegation
JavaScriptImplement event delegation via event bubbling.
DOM Manipulation
JavaScriptDynamically create and manipulate DOM elements.
Form Validation
JavaScriptA collection of common form validation rules.
File Upload
JavaScriptWrap file upload with progress and chunking support.
Image Lazy Loading
JavaScriptImplement image lazy loading with IntersectionObserver.
Copy to Clipboard
JavaScriptA cross-browser clipboard copy method.
Fullscreen API
JavaScriptWrap browser fullscreen operations.
Geolocation
JavaScriptGet user geolocation information.
Web Worker
JavaScriptCreate a Web Worker to run time-consuming tasks.
Service Worker
JavaScriptRegister a Service Worker for offline caching.
IndexedDB Operations
JavaScriptWrap IndexedDB CRUD operations.
Canvas Drawing
JavaScriptBasic Canvas drawing example.
List Comprehension
PythonQuickly generate lists using list comprehensions.
Dictionary Merging
PythonMultiple ways to merge dictionaries.
File Read/Write
PythonVarious ways to read and write files.
CSV Processing
PythonRead and write CSV files using the csv module.
JSON Processing
PythonJSON serialization and deserialization.
Regex Matching
PythonPerform regex matching using the re module.
Date Handling
PythonHandle dates and times with datetime.
Decorators
PythonDefine and use decorators.
Generators
PythonSave memory using generators.
Context Manager
PythonCustom context managers.
Exception Handling
PythonComplete exception handling mechanism.
Class Inheritance
PythonClass inheritance and method overriding.
Multithreading
PythonImplement multithreading using the threading module.
Multiprocessing
PythonAchieve true parallelism with multiprocessing.
asyncio Asynchronous Programming
PythonImplement asynchronous concurrency with asyncio.
Socket Programming
PythonTCP Socket server and client.
HTTP Requests
PythonSend HTTP requests using the requests library.
Database Operations
PythonOperate on databases using sqlite3.
Virtual Environment
PythonCreate and manage Python virtual environments.
pip Install
PythonCommon pip package management commands.
Environment Variables
PythonRead and set environment variables.
Logging
PythonConfigure and use the logging module.
Unit Testing
PythonWrite unit tests using unittest.
Type Hints
PythonImprove code readability with type annotations.
Dataclass
PythonSimplify class definitions with dataclass.
Enum
PythonDefine enum types using Enum.
Property Decorator
PythonControl attribute access with property.
Magic Methods
PythonCommon magic method examples.
Iterator
PythonCustom iterator implementation.
Coroutine
PythonBasic usage of coroutines.
Generic Functions
TypeScriptDefine and use generic functions.
Conditional Types
TypeScriptSelect types based on conditions.
Mapped Types
TypeScriptConstruct new types from existing ones.
Utility Types
TypeScriptTypeScript built-in utility types.
Type Guards
TypeScriptCustom type guard functions.
Function Overloads
TypeScriptDefine function overload signatures.
Decorators
TypeScriptClass and method decorators.
Enum
TypeScriptNumeric, string, and const enums.
Interface Inheritance
TypeScriptInterface inheritance and implementation.
Abstract Classes
TypeScriptDefine abstract classes and abstract methods.
Namespaces
TypeScriptOrganize code using namespaces.
Module Declarations
TypeScriptWrite type declarations for JS libraries.
Declaration Merging
TypeScriptMerge multiple declarations with the same name.
Optional Chaining
TypeScriptSafely access deep properties.
Nullish Coalescing
TypeScriptUse a default value only for null/undefined.
Type Inference
TypeScriptTypeScript automatically infers types.
const Assertions
TypeScriptNarrow types using as const.
satisfies Operator
TypeScriptType-check while preserving the narrowest type.
infer Keyword
TypeScriptExtract types within conditional types.
Template Literal Types
TypeScriptConstruct types based on strings.
goroutine
GoImplement concurrency using goroutines.
channel
GoCommunicate between goroutines using channels.
select
GoMultiplex channels using select.
mutex Mutex
GoProtect shared data using sync.Mutex.
defer Deferred Call
GoUsage and execution order of defer.
error Handling
GoGo's error handling pattern.
interface
GoDefine and implement interfaces.
Struct Embedding
GoImplement composition via embedding.
Generics
GoUsing generics in Go 1.18+.
context
GoControl timeout and cancellation using context.
File Operations
GoRead and write file operations.
HTTP Server
GoCreate an HTTP server.
HTTP Client
GoSend HTTP requests.
JSON Encoding/Decoding
GoConvert between structs and JSON.
String Processing
GoCommon operations in the strings package.
Slice Operations
GoCommon slice operations.
map Operations
GoCRUD operations on map.
Time Handling
GoCommon operations in the time package.
Regular Expressions
GoUsing the regexp package.
Testing
GoWrite unit tests.
Stream API
JavaProcess collections using the Stream API.
Lambda Expressions
JavaSimplify code with Lambda expressions.
Optional
JavaHandle null values elegantly.
Collection Operations
JavaCommon operations on List, Set, and Map.
Exception Handling
Javatry-catch-finally and custom exceptions.
File IO
JavaRead and write file operations.
Threads
JavaCreate and manage threads.
Concurrency Utilities
JavaCommon utilities in the concurrency package.
Annotations
JavaCustom annotations and usage.
Generics
JavaGeneric classes and methods.
Reflection
JavaGet class information at runtime.
Serialization
JavaObject serialization and deserialization.
Date and Time
JavaJava 8+ Date-Time API.
Regular Expressions
JavaPattern and Matcher.
JDBC
JavaDatabase connection and operations.
HTTP Client
JavaJava 11+ HTTP client.
Record
JavaJava 14+ record classes.
Pattern Matching
Javainstanceof pattern matching.
Sealed Classes
JavaJava 17+ sealed classes.
Text Blocks
JavaJava 15+ multi-line strings.
JOIN Queries
SQLMulti-table join queries.
Subqueries
SQLNested queries.
Window Functions
SQLRanking and aggregate window functions.
Aggregate Functions
SQLGROUP BY and HAVING.
CTE
SQLCommon Table Expressions.
Recursive Queries
SQLQuery hierarchical data with recursive CTE.
Indexes
SQLCreate and manage indexes.
Transactions
SQLTransaction control and isolation levels.
Stored Procedures
SQLCreate stored procedures and functions.
Triggers
SQLAutomatically executing triggers.
Views
SQLCreate and manage views.
Materialized Views
SQLMaterialized views and refresh.
Partitioned Tables
SQLTable partitioning strategies.
Backup and Recovery
SQLData backup, import, and export.
Performance Optimization
SQLQuery performance analysis and optimization.
JSON Operations
SQLPostgreSQL JSON/JSONB operations.
Full-Text Search
SQLPostgreSQL full-text search.
Pivot/Unpivot
SQLPIVOT and Crosstab.
Date Queries
SQLDate and time operations.
Pagination Queries
SQLLIMIT/OFFSET and cursor pagination.
Ownership
RustRust ownership system.
Borrowing and References
RustReferences and mutable borrows.
Lifetimes
RustExplicit lifetime annotations.
Trait
RustDefine and implement traits.
Generics
RustGeneric functions and structs.
Enum
RustEnums and Option.
Pattern Matching
Rustmatch and destructuring.
Error Handling
RustResult and the ? operator.
Iterator
RustIterator adapters and consumers.
Closures
RustClosures and Fn traits.
Module System
RustModules, paths, and visibility.
Concurrent Programming
RustThreads and channels.
Smart Pointers
RustBox, Rc, RefCell.
Macros
RustDeclarative and procedural macros.
Unsafe Rust
RustUnsafe operations.
Smart Pointers
C++unique_ptr, shared_ptr, weak_ptr.
RAII
C++Resource Acquisition Is Initialization.
Move Semantics
C++Rvalue references and move constructors.
Lambda Expressions
C++Lambda and captures.
Templates
C++Function templates and class templates.
STL Containers
C++Common container operations.
STL Algorithms
C++Common algorithm functions.
Iterator
C++Iterator types and usage.
Exception Handling
C++try-catch and custom exceptions.
Multithreading
C++thread, mutex, condition_variable.
File IO
C++File read and write operations.
Strings
C++std::string operations.
Regular Expressions
C++std::regex matching and replacement.
Type Deduction
C++auto, decltype, template deduction.
constexpr
C++Compile-time constants and computation.
Semantic Tags
HTMLHTML5 semantic structure.
Form Validation
HTMLHTML5 form validation.
CSS Grid
CSSGrid layout.
Flexbox
CSSFlexible box layout.
Animation
CSSCSS keyframe animations.
Transitions
CSSCSS transition effects.
CSS Variables
CSSCustom properties.
Media Queries
CSSResponsive breakpoints.
Pseudo-classes and Pseudo-elements
CSSPseudo-classes and pseudo-elements.
Responsive Design
CSSResponsive layout techniques.
Dark Mode
CSSDark theme switching.
Custom Scrollbar
CSSStyle scrollbars.
Gradients
CSSLinear and radial gradients.
Shadow Effects
CSSbox-shadow and text-shadow.
Filters
CSSCSS filter effects.
Transforms
CSS2D/3D transforms.
SVG
HTMLScalable Vector Graphics.
Canvas
HTMLCanvas drawing.
Web Components
HTMLCustom elements and Shadow DOM.
Accessibility
HTMLARIA and accessibility.
useState
ReactState management Hook.
useEffect
ReactSide-effect Hook.
useContext
ReactShared state via context.
useReducer
ReactComplex state management.
useMemo
ReactMemoize computation results.
useCallback
ReactMemoize callback functions.
useRef
ReactReference DOM and mutable values.
Custom Hooks
ReactExtract reusable logic.
Component Communication
ReactParent-child and sibling component communication.
Error Boundaries
ReactCatch component errors.
Lazy Loading
ReactCode splitting and lazy loading.
Portal
ReactRender to DOM nodes outside the component.
Higher-Order Components
ReactComponent enhancement pattern.
Render Props
ReactRender props pattern.
Performance Optimization
ReactReact performance optimization tips.
File Operations
BashFile and directory management.
Text Processing
BashText processing with grep, sed, awk.
Loops
Bashfor and while loops.
Conditionals
Bashif and case conditional statements.
Functions
BashFunction definition and parameters.
Arrays
BashBash array operations.
String Operations
BashBash string processing.
Git Basics
BashBasic Git operations.
Git Branches
BashBranch management and operations.
Git Merge
BashMerging and conflict resolution.
Git Revert
BashUndo commits and revert.
Git Tags
BashVersion tag management.
Git Stash
BashStash working directory changes.
Git Cherry-pick
BashSelectively merge commits.
Git Bisect
BashBinary search to locate problem commits.
Draggable
jQuery UIMake elements draggable with axis, containment, and event callbacks.
Droppable
jQuery UICreate drop targets that accept draggable elements with hover and drop events.
Resizable
jQuery UIAdd resize handles with min/max constraints and aspect ratio lock.
Sortable
jQuery UIReorder list items via drag-and-drop and persist the new order.
Accordion
jQuery UICollapsible content panels with only one section expanded at a time.
Datepicker
jQuery UICalendar widget with date range limits, formatting, and inline mode.
Dialog
jQuery UIModal window with buttons, animations, and dynamic open/close.
Tabs
jQuery UITabbed content panels with AJAX loading and event-driven switching.
Page Structure
jQuery MobileMulti-page template with header, content, and footer roles.
Page Transitions
jQuery MobileApply slide, pop, flip, and fade transitions between pages.
Toolbars
jQuery MobileFixed header and footer bars with fullscreen tap-to-toggle mode.
Navbars
jQuery MobilePersistent icon-based navigation bars in the footer.
Listviews
jQuery MobileFilterable, grouped lists with thumbnails, icons, and count bubbles.
Forms
jQuery MobileEnhanced inputs including sliders, switches, and grouped controls.
Buttons
jQuery MobileThemed, iconified, and grouped buttons from links and inputs.
Popup
jQuery MobileModal popups, dialogs, and tooltips with positioning control.
Bar Chart
Chart.jsVertical bar chart with custom colors and rounded corners.
Line Chart
Chart.jsSmooth line chart with fill, tension, and hover styling.
Pie Chart
Chart.jsPie chart with per-slice colors and legend positioning.
Doughnut Chart
Chart.jsDoughnut chart with cutout control and centered title.
Radar Chart
Chart.jsMulti-series radar chart for comparing entities across dimensions.
Responsive Chart
Chart.jsChart that fills its container with maintainAspectRatio disabled.
Options Configuration
Chart.jsTitle, legend, axis formatting, animations, and live updates.
Tooltips
Chart.jsCustom-styled tooltips with title, label, and footer callbacks.
Bar Chart
EChartsCategory bar chart with axis tooltip and styled bars.
Line Chart
EChartsSmooth multi-series line chart with area fill.
Pie Chart
EChartsDonut-style pie with emphasis effect and percentage labels.
Scatter Plot
EChartsScatter plot with point size encoded by a third dimension.
Radar Chart
EChartsRadar with multiple indicators and overlaid value series.
Options & Series
EChartsDataset-driven multi-series chart with grid and legend config.
Tooltip
EChartsCustom HTML tooltip with crosshair axis pointer.
Responsive
EChartsResize chart on window and container changes, with cleanup.
Module & Controller
AngularJSDefine a module and a controller with scope methods.
Scope Inheritance
AngularJSPrototypal scope inheritance between parent and child controllers.
Custom Directives
AngularJSAttribute directive and element directive with isolated scope.
Services & Factories
AngularJSFactory and service singletons for shared state and logic.
Routing (ngRoute)
AngularJSConfigure routes with templates, controllers, and resolve guards.
Custom Filters
AngularJSChainable filters for formatting values in templates.
Forms & Validation
AngularJSForm with required, minlength, email validation, and disabled submit.
$http Service
AngularJSPromise-based HTTP requests with config object and error handling.
Component Basics
AngularDefine an Angular component with selector, template, and styles.
Template Syntax & Binding
AngularInterpolation, property, event, and two-way binding in Angular templates.
Built-in Directives
AngularUse *ngIf, *ngFor, ngClass, and ngStyle to shape the DOM.
Pipes & Custom Pipe
AngularTransform template values with built-in and custom pipes.
Services & Dependency Injection
AngularCreate an injectable service and consume it in a component.
Routing Configuration
AngularDefine routes with params, lazy loading, and redirects.
Reactive Forms
AngularBuild a typed reactive form with FormBuilder and validators.
HttpClient & RxJS
AngularPerform typed HTTP requests with HttpClient and Observables.
Single-File Component
Vue 3Define a Vue 3 component with script setup, template, and scoped styles.
Composition API
Vue 3Organize reactive state, computed, and lifecycle logic by feature.
Refs & Reactive
Vue 3Choose between ref and reactive for reactive state.
Computed & Watch
Vue 3Derive values with computed and react to changes with watch.
Props & Emits
Vue 3Declare inputs and events, and implement v-model on a component.
Lifecycle Hooks
Vue 3Register lifecycle callbacks as composable functions.
Slots & Scoped Slots
Vue 3Distribute content with default, named, and scoped slots.
Composables
Vue 3Extract reusable reactive logic into a useMouse composable.
Selectors
jQuerySelect elements by id, class, attribute, and pseudo-filters.
Events & Delegation
jQueryBind handlers with on(), support delegation and namespaced removal.
DOM Manipulation
jQueryGet/set text, html, attributes, classes, and insert nodes.
AJAX Requests
jQueryUse $.ajax, $.get, $.post, and load with promises.
Effects & Animation
jQueryShow, hide, fade, slide, and animate elements.
Traversing the DOM
jQueryNavigate relatives and filter the matched set.
Utility Methods
jQueryIterate, merge, and filter with jQuery helpers.
Method Chaining
jQueryChain jQuery methods and use end() to restore context.
Grid System
BootstrapLay out pages with the 12-column responsive grid.
Responsive Utilities
BootstrapShow, hide, and reorder elements per breakpoint.
Navbar
BootstrapBuild a responsive collapsing navbar with brand and links.
Cards
BootstrapCompose a card with image, body, list, and footer.
Modal
BootstrapTrigger and structure a Bootstrap modal dialog.
Forms & Validation
BootstrapBuild a responsive form with validation feedback.
Buttons
BootstrapUse button variants, sizes, states, and groups.
Alerts
BootstrapDisplay contextual messages with dismissible alerts.
Semantic Elements
HTML5Structure a page with header, nav, main, article, and footer.
Form Input Types
HTML5Use native HTML5 input types, validation, and datalist.
Canvas Basics
HTML5Draw shapes, lines, and text on a 2D canvas.
Video & Audio
HTML5Embed media with multiple sources and control playback.
Local & Session Storage
HTML5Persist data in the browser with the Web Storage API.
Geolocation
HTML5Get the user's position and watch for changes.
Drag and Drop
HTML5Accept dropped files with the Drag and Drop API.
Web Workers
HTML5Run heavy computation on a background thread.
Flexbox Layout
CSS3Align and distribute items along one axis with flexbox.
Grid Layout
CSS3Build two-dimensional layouts with grid-template-areas.
Animations
CSS3Define keyframes and apply reusable animations.
Transitions
CSS3Smoothly interpolate properties on state change.
2D & 3D Transforms
CSS3Translate, rotate, and scale elements with GPU-friendly transforms.
Media Queries
CSS3Apply responsive, print, and preference-based styles.
Custom Properties
CSS3Define and reuse CSS variables with live updates.
Pseudo-Classes
CSS3Select elements by state and structural position.
Variables
SassStore colors, spacing, and breakpoints in Sass variables.
Nesting
SassMirror HTML structure and use the parent selector with &.
Mixins
SassCreate reusable style groups with arguments and defaults.
Extend & Placeholders
SassShare styles across selectors with @extend and %placeholders.
Partials & @use
SassSplit stylesheets into partials and load them with @use.
Functions
SassDefine custom functions that return computed values.
Control Directives
SassGenerate styles with @for, @each, and @if.
Operators
SassUse arithmetic, relational, and equality operators in Sass.
Utility Classes
Tailwind CSSCompose a button and card from atomic utilities.
Responsive Design
Tailwind CSSApply per-breakpoint utilities with sm:, md:, and lg: prefixes.
Hover & Focus States
Tailwind CSSStyle interactive states and group-hover with variant prefixes.
Flexbox & Grid
Tailwind CSSCenter, distribute, and grid layouts with utilities.
Colors
Tailwind CSSUse the default palette, opacity modifiers, and gradients.
Spacing
Tailwind CSSApply padding, margin, gap, and width/height from one scale.
Custom Configuration
Tailwind CSSExtend the theme with custom colors, fonts, and animations.
Dark Mode
Tailwind CSSToggle themes with the dark: variant and class strategy.
Run a Container
DockerRun, list, stop, and remove Docker containers.
Writing a Dockerfile
DockerBuild an image from a Dockerfile with multi-instruction layers.
Image Management
DockerPull, list, tag, push, and prune images.
Volumes & Bind Mounts
DockerPersist data with named volumes, anonymous volumes, and bind mounts.
Networking
DockerCreate networks, attach containers, and expose ports.
Docker Compose
DockerDefine and run multi-container apps with compose.
Multi-Stage Build
DockerBuild artifacts in one stage and copy them into a slim final image.
Exec & Logs
DockerRun commands inside running containers and inspect logs.
Pod Manifest
KubernetesDefine a standalone Pod with a container, env, and probe.
Deployment & Rollout
KubernetesManage a replicated, rolling-updated workload.
Service Types
KubernetesExpose Pods via ClusterIP, NodePort, and LoadBalancer services.
ConfigMap & Secret
KubernetesInject configuration and sensitive data into containers.
Ingress Routing
KubernetesRoute external HTTP traffic to services by host and path.
Labels & Selectors
KubernetesTag resources and query them with selectors.
kubectl Basics
KubernetesCommon kubectl commands for everyday operations.
Namespaces
KubernetesPartition a cluster into isolated virtual clusters.
Insert & Find
MongoDBInsert documents and query a collection.
Query Operators
MongoDBUse comparison, logical, array, and regex operators.
Aggregation Pipeline
MongoDBBuild multi-stage pipelines for analytics.
Indexes
MongoDBCreate single, compound, and text indexes for performance.
Update & Delete
MongoDBModify and remove documents with update operators.
Collections & Schema
MongoDBManage collections, validators, and capped collections.
Replica Set
MongoDBConfigure a replica set for high availability.
Sharding
MongoDBDistribute data across shards by a shard key.
SELECT with JOINs
MySQLCombine rows from multiple tables using JOINs.
Subqueries
MySQLUse scalar, IN, EXISTS, and derived-table subqueries.
Indexes
MySQLCreate single, composite, unique, and fulltext indexes.
Transactions
MySQLUse BEGIN, COMMIT, ROLLBACK, and isolation levels.
Stored Procedures
MySQLDefine reusable procedural routines with parameters.
Triggers
MySQLRun logic automatically on INSERT, UPDATE, or DELETE.
Views
MySQLCreate virtual tables to simplify and secure queries.
Query Optimization
MySQLDiagnose and optimize slow queries with EXPLAIN and indexes.
SELECT with JOINs
PostgreSQLUse INNER, LEFT, and LATERAL joins in PostgreSQL.
JSONB Operations
PostgreSQLStore, query, and index JSONB documents.
Window Functions
PostgreSQLCompute rankings, running totals, and moving averages.
Common Table Expressions
PostgreSQLUse CTEs and recursive CTEs for readable queries.
Index Types
PostgreSQLCreate B-tree, GIN, GiST, and partial indexes.
Full-Text Search
PostgreSQLSearch text using tsvector, tsquery, and ranking.
Transactions & Isolation
PostgreSQLControl transactions, savepoints, and isolation levels.
Array Operations
PostgreSQLStore and query arrays of scalar values.
Strings & Counters
RedisSet, get, increment, and expire string values.
Lists & Queues
RedisBuild queues and stacks with list operations.
Hashes
RedisStore object fields and values efficiently.
Sets
RedisManage unique collections and compute intersections.
Sorted Sets & Leaderboards
RedisRank items by score for leaderboards and scheduling.
Pub/Sub
RedisBroadcast messages to subscribed clients.
Persistence
RedisConfigure RDB snapshots and AOF append logs.
Keys & Expiration
RedisSet TTL, scan keys, and inspect the keyspace.
Server Block
NginxConfigure a virtual host with root, index, and try_files.
Reverse Proxy
NginxForward requests to upstream HTTP services.
Load Balancing
NginxDistribute traffic across multiple upstream servers.
HTTPS & SSL
NginxTerminate TLS with certificates and HTTP/2.
Location Rules
NginxMatch request URIs with prefix, regex, and exact locations.
Rewrite & Redirect
NginxRewrite URIs and issue HTTP redirects.
Gzip Compression
NginxCompress text responses to reduce bandwidth.
Proxy Caching
NginxCache upstream responses to reduce backend load.
File Operations
LinuxCopy, move, link, and search files efficiently.
Permissions & Ownership
LinuxManage read/write/execute bits with chmod and chown.
Process Management
LinuxList, signal, and monitor running processes.
Networking
LinuxInspect interfaces, ports, connections, and DNS.
Package Management
LinuxInstall, update, and search packages on Debian and RHEL.
Text Processing
LinuxFilter, transform, and summarize text streams.
Disk Usage
LinuxInspect filesystems, large directories, and inodes.
Users & Groups
LinuxCreate users, manage groups, and grant sudo access.
Create Table
SQLiteDefine tables with constraints and autoincrement keys.
Insert & Query
SQLiteInsert rows and query with parameterized statements.
JOINs & Aggregates
SQLiteCombine tables and aggregate grouped rows.
Indexes & EXPLAIN
SQLiteCreate indexes and inspect query plans.
Transactions & Savepoints
SQLiteWrap statements in atomic units with savepoints.
PRAGMA Statements
SQLiteConfigure SQLite behavior and inspect the database.
ATTACH Database
SQLiteQuery across multiple database files in one connection.
Export & Import
SQLiteDump databases to SQL and restore from dumps.
fs Module
Node.jsRead, write, and watch files with promises and callbacks.
HTTP Server
Node.jsBuild an HTTP server with the http module and routing.
Streams
Node.jsPipe, transform, and consume streams efficiently.
EventEmitter
Node.jsEmit and listen for custom events.
path Module
Node.jsJoin, resolve, and parse file paths cross-platform.
Buffers
Node.jsWork with binary data using Buffer and TypedArrays.
Child Process
Node.jsSpawn, exec, and fork external processes.
Async Patterns
Node.jsRun promises in parallel, sequentially, and with limits.
Model Definition
DjangoDefine a Django model with field types and meta options.
ORM QuerySet
DjangoFilter, exclude, annotate and chain QuerySets.
Class-Based Views
DjangoUse generic class-based views for common CRUD flows.
URL Routing
DjangoWire URLs to views with path converters and includes.
ModelForms
DjangoBuild forms from models with validation and widgets.
Template Tags
DjangoUse built-in tags and filters in Django templates.
Admin Customization
DjangoCustomize the Django admin with list_display and actions.
Authentication
DjangoLogin, logout, and protect views with auth decorators.
Routing
FlaskDefine routes with methods and dynamic parameters.
Request and Response
FlaskAccess request data and build custom responses.
Jinja2 Templates
FlaskRender templates with context and template inheritance.
Blueprints
FlaskOrganize an app into modular blueprints.
Session
FlaskStore per-user data in signed session cookies.
Error Handling
FlaskRegister custom error handlers for HTTP exceptions.
Flask-SQLAlchemy
FlaskDefine models and query them with Flask-SQLAlchemy.
Custom Decorators
FlaskBuild decorators to gate or augment view functions.
Path Parameters
FastAPICapture typed path segments with validation.
Query Parameters
FastAPIParse query strings with defaults and validation.
Pydantic Request Body
FastAPIValidate JSON bodies with Pydantic models.
Dependency Injection
FastAPIShare logic via Depends and yield-based dependencies.
Response Model
FastAPIShape and filter responses with response_model.
JWT Auth
FastAPIIssue and verify JSON Web Tokens with OAuth2.
Async and Await
FastAPIDefine async handlers and run blocking work in a thread.
Middleware
FastAPIAdd CORS, timing, and custom middleware.
Array Creation
NumPyCreate arrays from lists and built-in constructors.
Indexing and Slicing
NumPySlice arrays and index with boolean masks.
Broadcasting
NumPyCombine arrays of compatible shapes without copying.
Math Operations
NumPyApply element-wise math and reductions.
Linear Algebra
NumPySolve systems, factorize, and compute eigenvalues.
Random Numbers
NumPySample from distributions with a Generator.
Reshaping
NumPyReshape, transpose, and stack arrays.
Saving and Loading
NumPyPersist arrays with .npy, .npz, and text formats.
DataFrame Creation
PandasBuild DataFrames from dicts, lists, and files.
Indexing and Selecting
PandasSelect rows and columns with loc, iloc, and masks.
GroupBy Operations
PandasSplit, aggregate, and transform with groupby.
Merge and Join
PandasCombine frames with merge and concat.
Pivot Tables
PandasReshape data with pivot, melt, and pivot_table.
Time Series
PandasResample, shift, and roll windows over time data.
Missing Data
PandasDetect, fill, and drop NaN values.
I/O Operations
PandasRead and write CSV, Excel, Parquet, and SQL.
Line Plot
MatplotlibPlot lines with markers, colors, and styles.
Bar Chart
MatplotlibDraw vertical, horizontal, and grouped bars.
Scatter Plot
MatplotlibVisualize relationships with size and color encodings.
Subplots
MatplotlibArrange multiple axes with subplots and GridSpec.
Labels and Legend
MatplotlibAnnotate plots with text, arrows, and legend options.
Styles and Themes
MatplotlibApply built-in styles and customize rcParams.
Save Figure
MatplotlibExport figures to PNG, PDF, and SVG with DPI control.
3D Plot
MatplotlibRender surfaces and scatter in 3D.
Read and Write Images
OpenCVLoad, display, and save images in various formats.
Resize and Crop
OpenCVResize with interpolation and crop regions of interest.
Color Conversion
OpenCVConvert between BGR, RGB, HSV, and grayscale.
Blur and Filter
OpenCVSmooth and sharpen images with kernels.
Edge Detection
OpenCVDetect edges with Canny, Sobel, and Laplacian.
Contours
OpenCVFind, draw, and measure contours.
Face Detection
OpenCVDetect faces with a Haar cascade classifier.
Threshold
OpenCVApply binary, adaptive, and Otsu thresholding.
Tensor Basics
PyTorchCreate, index, and operate on tensors.
Autograd
PyTorchCompute gradients automatically with backward().
Dataset and DataLoader
PyTorchBuild custom datasets and batch them with DataLoader.
Model Definition
PyTorchDefine models with nn.Module and Sequential.
Training Loop
PyTorchRun a full train-eval loop with loss and optimizer.
GPU and CUDA
PyTorchMove models and tensors to GPU and handle availability.
Save and Load
PyTorchCheckpoint models, optimizer state, and weights.
Transfer Learning
PyTorchFine-tune a pretrained torchvision model.
Tensor Basics
TensorFlowCreate and operate on TensorFlow tensors.
Keras Model
TensorFlowBuild models with Sequential and the functional API.
Layers
TensorFlowUse core layers and build a custom one.
Compile and Train
TensorFlowCompile, fit, and evaluate a Keras model.
Custom Training Loop
TensorFlowStep through batches with GradientTape.
Callbacks
TensorFlowMonitor and control training with callbacks.
Save and Load
TensorFlowPersist models in SavedModel and Keras formats.
Data Pipeline
TensorFlowBuild efficient input pipelines with tf.data.
Data Preprocessing
Machine LearningScale, encode, and impute features with sklearn.
Train Test Split
Machine LearningSplit data into training and evaluation sets.
Classification
Machine LearningTrain and predict with common classifiers.
Regression
Machine LearningFit regressors and evaluate with RMSE and R2.
Clustering
Machine LearningCluster with KMeans and DBSCAN.
Metrics
Machine LearningEvaluate classifiers with confusion matrix and reports.
Pipeline
Machine LearningChain preprocessing and modeling with Pipeline.
Cross Validation
Machine LearningEstimate performance with k-fold and grid search.
Tokenization
NLPTokenize text with NLTK, spaCy, and regex.
Stopwords
NLPRemove common words with NLTK and spaCy.
Stemming and Lemmatization
NLPReduce words to roots with Porter, Snowball, and lemmatizers.
TF-IDF
NLPVectorize text with TF-IDF and n-grams.
Word2Vec
NLPTrain and use word embeddings with gensim.
Named Entity Recognition
NLPExtract entities with spaCy and transformers.
Sentiment Analysis
NLPScore text polarity with VADER and transformers.
Text Classification
NLPTrain a TF-IDF + LogisticRegression text classifier.
Pointer Basics
CDeclare pointers, dereference, and walk an array with pointer arithmetic.
Memory Management
CAllocate, resize, and free heap memory with malloc, realloc, and free.
String Operations
CUse string.h helpers for length, copy, concat, compare, and tokenize.
File I/O
COpen, read, write, and close files using the stdio FILE API.
Structs
CGroup related fields with typedef and pass by pointer for mutation.
Function Pointers
CStore function addresses for callbacks and dispatch tables.
Preprocessor Macros
CDefine object-like and function-like macros with conditional compilation.
Bit Operations
CSet, clear, toggle, and test bits with bitwise operators and flags.
LINQ Query
C#Filter, project, sort, group, and aggregate sequences with LINQ.
Async and Await
C#Run I/O concurrently with async methods, await, and Task.WhenAll.
Properties
C#Encapsulate state with auto, computed, validated, and init-only properties.
Generics
C#Write type-parameterized methods and classes with constraints.
Delegates and Events
C#Define delegate types and publish events with safe subscription.
Reflection
C#Inspect type metadata and invoke members at runtime via System.Reflection.
Collections
C#Use List, Dictionary, HashSet, Queue, Stack, and read-only views.
File I/O
C#Read, write, append, copy, and JSON-serialize files with File and streams.
Optionals
SwiftUse optional binding, nil-coalescing, chaining, and guard for safe unwrapping.
Closures
SwiftDefine closure expressions, capture state, and pass escaping callbacks.
Protocols
SwiftDefine contracts, conform with structs, and add default behavior via extensions.
Generics
SwiftWrite type-parameterized functions and types with protocol constraints.
Structs and Classes
SwiftCompare value-type structs with reference-type classes and inheritance.
Error Handling
SwiftThrow and catch typed errors with do-catch, try?, try!, and rethrows.
Concurrency (async/await)
SwiftRun async functions, parallelize with async let, and fan out with task groups.
String Manipulation
SwiftTrim, split, join, replace, and index strings using Swift's Unicode API.
Blocks, Procs, Lambdas
RubyUse blocks with yield, Procs, lambdas, and the & operator.
Classes and Modules
RubyDefine classes with inheritance, mix in modules, and add class methods.
Iterators
RubyUse each, map, select, reduce, group_by, and lazy enumerators.
Strings
RubyInterpolate, trim, split, replace, and pattern-match strings.
Hashes
RubyBuild, default, transform, merge, and group with Hash.
Metaprogramming
RubyDefine methods dynamically, intercept with method_missing, and build DSLs.
Error Handling
RubyRaise and rescue typed exceptions with ensure and retry.
File I/O
RubyRead, write, append, traverse directories, and process CSV files.
Null Safety
KotlinUse nullable types, safe calls, Elvis, and smart casts for null-safe code.
Data Classes
KotlinModel immutable data with auto-generated equals, copy, and destructuring.
Coroutines
KotlinUse launch, async, await, and structured concurrency with supervisorScope.
Extension Functions
KotlinAdd methods to existing types with extensions and infix operators.
Sealed Classes
KotlinModel closed hierarchies and UI state with sealed classes and when.
When Expression
KotlinBranch on values, ranges, and types with when as statement or expression.
Collections
KotlinFilter, map, group, partition, and chunk with functional operators.
Delegation
KotlinDelegate interfaces, lazy properties, observables, and custom delegates.
Data Frames
RCreate, inspect, filter, mutate, sort, aggregate, and merge data frames.
Vectors
RBuild atomic vectors, apply vectorized ops, index, and recycle.
ggplot2
RBuild layered plots with geoms, facets, and themes using the grammar of graphics.
dplyr
RChain mutate, filter, group_by, summarise, and joins with the native pipe.
Statistics
RCompute summaries, run t-tests, linear models, ANOVA, and use distributions.
Apply Family
RApply functions over arrays, lists, and groups with apply, lapply, sapply, tapply.
Data Import/Export
RRead and write CSV, TSV, RDS, RData, and text files with base R.
Functions
RDefine functions with defaults, variadic args, closures, and higher-order use.
Headings
MarkdownSix levels of ATX and Setext headings.
Links and Images
MarkdownInline, reference, and auto links plus images.
Code Blocks
MarkdownFenced, indented, and inline code.
Tables
MarkdownGFM tables with column alignment.
Lists
MarkdownOrdered, unordered, and nested lists.
Blockquotes
MarkdownSingle, multi-line, and nested quotes.
Emphasis
MarkdownItalic, bold, strikethrough, and escaping.
Task Lists
MarkdownGFM checkboxes for to-do items.
Data Types
JSONThe seven JSON value types.
Nested Objects
JSONObjects within objects for hierarchical data.
Arrays
JSONLists of mixed and homogeneous values.
Schema Validation
JSONValidate structure with JSON Schema.
JSONPath
JSONQuery expressions for locating nodes.
Merge Patch (RFC 7386)
JSONPartially update JSON documents.
JSON Pointer (RFC 6901)
JSONAddress a specific value by path.
Streaming (NDJSON)
JSONNewline-delimited JSON for streaming.
Scalars
YAMLStrings, numbers, booleans, null, and dates.
Sequences and Mappings
YAMLLists and key-value maps.
Anchors and Aliases
YAMLReuse nodes with anchors, aliases, and merge keys.
Multi-Document
YAMLSeveral documents in one stream.
Tags
YAMLExplicit type tags for custom resolution.
Flow Style
YAMLInline JSON-like sequences and mappings.
Block Style
YAMLIndentation-based nesting.
Schema Types
YAMLHow YAML 1.1 and 1.2 resolve scalars.
Namespaces
XMLDeclare and use XML namespaces.
XPath
XMLPath expressions for selecting nodes.
DTD and Schema
XMLDocument Type Definition for validation.
DOM and SAX Parsing
XMLTwo models for reading XML.
Attributes
XMLName-value pairs on elements.
CDATA Sections
XMLEscape blocks of literal text.
XSLT
XMLTransform XML into other formats.
Well-Formed XML
XMLRules every parser enforces.
Basic Shapes
SVGRect, circle, ellipse, line, polygon, polyline.
Paths
SVGDraw arbitrary curves via the d attribute.
Gradients
SVGLinear and radial color blends.
Transforms
SVGTranslate, rotate, scale, and skew groups.
Text
SVGStyled text and tspans.
Filters
SVGBlur, shadow, and other effects.
Animation
SVGSMIL animate, transform, and opacity.
Patterns
SVGTileable fills defined in defs.
Character Classes
RegexMatch sets and ranges of characters.
Quantifiers
RegexControl how many times a token repeats.
Groups and Capturing
RegexCapture, non-capture, and named groups.
Lookaround
RegexZero-width assertions around a position.
Alternation
RegexMatch one of several branches.
Anchors
RegexMatch positions instead of characters.
Backreferences
RegexReuse a previously captured group.
Common Patterns
RegexPractical patterns for everyday validation.
Schema and Types
GraphQLDefine types, enums, and scalars.
Queries
GraphQLRead data with selection sets.
Mutations
GraphQLWrite data and return the result.
Subscriptions
GraphQLReceive pushed updates over a stream.
Fragments
GraphQLReusable selection sets.
Variables
GraphQLParameterize operations dynamically.
Directives
GraphQLConditionally include or skip fields.
Resolvers
GraphQLFunctions that fulfill each field.
HTTP Methods
curlGET, POST, PUT, and DELETE requests.
Headers
curlSet and inspect request and response headers.
Authentication
curlBasic, bearer, and OAuth credentials.
Cookies
curlSend, save, and reuse cookies.
Upload and Download
curlTransfer files to and from a server.
Proxies
curlRoute requests through HTTP or SOCKS proxies.
Follow Redirects
curlChase 3xx responses automatically.
Debugging
curlTrace requests, timing, and transfers.
Methods
HTTPCore HTTP request methods.
Status Codes
HTTPFive classes of response codes.
Headers
HTTPCommon request and response headers.
Caching
HTTPCache-Control, ETag, and conditional requests.
Cookies
HTTPSet, send, and expire cookies.
Authentication
HTTPBasic, Bearer, and challenge responses.
Content Negotiation
HTTPNegotiate representation with Accept headers.
CORS
HTTPCross-origin preflight and responses.
Module Instantiation
WebAssemblyCompile and instantiate a .wasm module.
Linear Memory
WebAssemblyShared, growable byte buffer.
Tables
WebAssemblyFunction references for indirect calls.
Imports and Exports
WebAssemblyExchange functions, memory, and globals.
JS Interop
WebAssemblyPass strings through shared memory.
Text Format (WAT)
WebAssemblyHuman-readable WebAssembly.
Performance
WebAssemblyBenchmark and parallelize WASM workloads.
Debugging
WebAssemblyInspect modules and handle traps.
Pattern Matching
ScalaDestructure values and match cases in Scala.
Case Classes
ScalaImmutable data classes with auto-generated equals/hashCode/toString.
Collections Operations
ScalaFunctional collection operations: map, filter, fold, groupBy.
Traits and Mixins
ScalaCompose behaviors using traits with default implementations.
Futures and Async
ScalaAsynchronous computation with Future and ExecutionContext.
Implicits (Given/Using in Scala 3)
ScalaType-class derivation and context passing via implicits.
Akka Actors (Pekko)
ScalaMessage-passing concurrency with the actor model.
Type Classes (Cats-style)
ScalaAd-hoc polymorphism via type classes.
Matrix Creation and Operations
MATLABCreate and operate on matrices in MATLAB.
2D Plotting
MATLABCreate line plots with labels, legends, and styling.
Functions and Scripts
MATLABDefine functions in separate files or at end of scripts.
Cell Arrays and Structs
MATLABHeterogeneous data containers in MATLAB.
File I/O
MATLABRead and write .mat, .csv, and text files.
ODE Solvers
MATLABSolve ordinary differential equations with ode45.
Signal Processing (FFT)
MATLABCompute and visualize the FFT of a signal.
Struct Arrays and Tables
MATLABWork with struct arrays and modern table data type.
Variables and Types
Visual BasicDeclare variables with Dim and type inference.
Loops and Iteration
Visual BasicFor, For Each, While, and Do loops in VB.
Sub and Function Procedures
Visual BasicDefine Sub (no return) and Function (returns value).
Windows Forms Basics
Visual BasicCreate a simple WinForms application.
File I/O
Visual BasicRead/write text files and use My.Computer.FileSystem.
Error Handling (Try/Catch)
Visual BasicStructured exception handling in VB.
Collections (List, Dictionary)
Visual BasicGeneric collections in VB.NET.
LINQ Query Expressions
Visual BasicQuery data with VB LINQ syntax.
Units and Classes
DelphiDefine units with interface and implementation sections.
VCL Form Basics
DelphiCreate a form with event handlers in Delphi VCL.
Properties and Events
DelphiDefine properties and event handlers in Delphi.
Generics
DelphiType-safe containers with generics in Delphi.
Interfaces and Reference Counting
DelphiDefine interfaces with automatic reference counting.
Exception Handling
DelphiTry/Except/Finally in Delphi.
RTTI (Runtime Type Information)
DelphiInspect types and properties at runtime.
FireDAC Database Access
DelphiQuery SQL databases with FireDAC.
Arrays and Vector Operations
FortranCreate and operate on arrays in modern Fortran.
Subroutines and Functions
FortranDefine reusable procedures in Fortran.
Modules and Derived Types
FortranOrganize code with modules and OOP-style types.
File I/O and Formatting
FortranRead/write files with formatted output.
OpenMP Parallelism
FortranParallelize loops with OpenMP directives.
Numerical: Linear Algebra (BLAS/LAPACK)
FortranCall BLAS/LAPACK for matrix operations.
Derived Types and Pointers
FortranCustom types with allocatable components and pointers.
Pointers and Allocatables
FortranDynamic memory allocation in Fortran.
Tables (Arrays and Maps)
LuaTables are Lua's only data structure — used as arrays and maps.
Metatables and OOP
LuaImplement OOP and operator overloading via metatables.
Coroutines
LuaCooperative multitasking with coroutines.
Modules
LuaCreate reusable modules in Lua.
String Manipulation
LuaPattern matching and string functions in Lua.
File I/O
LuaRead and write files in Lua.
OOP with Inheritance
LuaImplement class inheritance using metatables.
Error Handling (pcall)
LuaProtected calls and error handling in Lua.
Pattern Matching
ElixirPattern matching is core to Elixir — used everywhere.
Pipe Operator
ElixirChain function calls with the |> pipe operator.
Processes and Messages
ElixirSpawn lightweight processes and send messages.
GenServer
ElixirBuild stateful server processes with GenServer behaviour.
Supervisors and OTP
ElixirBuild fault-tolerant supervision trees.
Protocols and Enums
ElixirPolymorphism via protocols and the Enum module.
Enum and Stream Operations
ElixirFunctional collection operations in Elixir.
Metaprogramming with Macros
ElixirWrite code that writes code at compile time.
Types and Type Classes
HaskellDefine algebraic data types and type classes.
Maybe and IO Monads
HaskellUse Maybe for safety and IO for side effects.
List Comprehensions and Laziness
HaskellGenerate lists with comprehensions and leverage laziness.
Functors, Applicatives, Monad Type Classes
HaskellThe three core abstraction type classes.
IO and do Notation
HaskellSide-effectful programming in Haskell.
Modules and Imports
HaskellOrganize code with modules and control exports.
Laziness and Strictness
HaskellUnderstand lazy evaluation and when to be strict.
Applicative Functors
HaskellApply functions in a context with less power than Monad.
Classes and Constructors
DartDefine classes with named and factory constructors.
Async/Await and Futures
DartAsynchronous programming with Future and async/await.
Collections (List, Map, Set)
DartWork with collections and functional operations.
Null Safety
DartSound null safety with ? and ! operators.
Generics
DartType-safe reusable classes and methods.
Mixins and Extensions
DartCompose behaviors without inheritance.
Futures and Streams
DartWork with single and multiple async values.
Isolates (True Parallelism)
DartRun code in separate isolates for CPU-bound work.
Scalars, Arrays, and Hashes
PerlPerl's three main data types with sigils.
Regular Expressions
PerlPerl is famous for its powerful regex support.
Subroutines and References
PerlDefine subs and use references for complex data.
Complex Data Structures
PerlBuild nested structures with references.
Modules and Packages
PerlCreate reusable modules with package keyword.
File I/O
PerlRead and write files with filehandles.
OOP with Moose
PerlModern object-oriented programming in Perl.
One-Liners and CLI Tricks
PerlCommon Perl one-liners for text processing.
Contract Basics
SolidityDefine a basic smart contract with state and functions.
Functions and Visibility
SolidityFunction visibility, payable, and return values.
Modifiers and Access Control
SolidityReuse validation logic with modifiers.
Events and Logs
SolidityEmit events for off-chain listeners.
Mappings, Structs & Nested Storage
SolidityGroup related data with structs and look it up by key with mappings.
Inheritance, Abstract & Interfaces
SolidityReuse logic via inheritance; define contracts with abstract and interface.
Payable, receive & fallback (ETH flows)
SolidityReceive ETH via payable functions and the receive/fallback hooks.
Reentrancy & Checks-Effects-Interactions
SolidityHarden contracts against the most common smart-contract attack.
Buffers, Windows & Tabs
VimEdit multiple files with buffers, split windows, and tab pages.
Search & Substitute
VimFind text with / and replace with :s, leveraging regex and ranges.
Registers (Multi-Clipboard)
VimStore yanks/deletes in named registers and paste from them.
Marks (Bookmarks)
VimJump back to positions in a file or across files with marks.
Macros (Recorded Keystrokes)
VimRecord a sequence of keys and replay it to automate repetitive edits.
Folding (Collapse Code)
VimHide regions of code to focus on structure with fold methods.
Plugin Managers & Ecosystem
VimInstall, configure and discover plugins with vim-plug / packer / lazy.
LSP, Completion & Diagnostics
VimGet IDE features (autocomplete, go-to-definition, diagnostics) via LSP.
set / get — Basic Key-Value
MemcachedStore and retrieve values by key with expiration and flags.
add / replace / append / prepend
MemcachedConditional writes and in-place string concatenation.
cas / gets — Compare-And-Swap
MemcachedOptimistic locking: update a key only if it hasn't changed since you read it.
stats — Server Metrics & Slabs
MemcachedInspect memory, hit rate, evictions and per-slab allocation.
flush_all — Invalidate Everything
MemcachedLogically invalidate all keys instantly (lazy deletion).
Expiration, Eviction & TTL Strategy
MemcachedChoose TTLs wisely and understand how Memcached evicts under pressure.
Text vs Binary Protocol & Consistent Hashing
MemcachedPick the right protocol and shard across servers without reshuffling.
Patterns: Read-Through, Write-Behind & Session Cache
MemcachedApply Memcached to common application caching problems.
Connecting: URLs, TLS, AUTH & Select
Redis CLIConnect to standalone, TLS, authenticated, or non-default DB indexes.
Interactive Mode, HELP & Inspecting
Redis CLINavigate the REPL, discover commands, and introspect the server.
MULTI / EXEC / WATCH (Transactions)
Redis CLIQueue commands atomically and use optimistic locking with WATCH.
Pub/Sub: SUBSCRIBE, PUBLISH & PSUBSCRIBE
Redis CLIFan-out messaging with channels and pattern subscriptions.
MONITOR, SLOWLOG & Latency Debugging
Redis CLIWatch every command in real time and find slow queries.
EVAL, Lua & Function Stats (Server-side Scripting)
Redis CLIRun atomic server-side Lua scripts; load and call functions.
RDB / AOF Persistence & Backup
Redis CLITrigger snapshots, manage AOF rewrite, and capture a safe backup.
ACL Users & Cluster Operations
Redis CLIManage ACL users, redis-check tools, and cluster resharding.
Broadcasting & Vectorization
JuliaApply a function element-wise over arrays with dot syntax and @.
Multiple Dispatch
JuliaSelect methods by the runtime types of all arguments, not just the receiver.
Parametric Types & Performance
JuliaDefine generic, type-stable containers that compile to specialized code.
Macros & Expressions
JuliaManipulate Julia syntax trees as first-class data via :expr and macro.
Multi-threading & Distributed Compute
JuliaParallelize loops with @threads and offload tasks with @spawn / pmap.
DataFrame Operations (DataFrames.jl)
JuliaFilter, transform, group, and join tabular data with DataFrames.jl.
Performance Tips: @inbounds, @fastmath, views
JuliaWrite Julia that runs at C speed by removing bounds checks, avoiding allocations, and using views.
Solving ODEs with DifferentialEquations.jl
JuliaDefine and numerically solve an initial-value ODE with adaptive stepping.
Hello World via Linux syscall
AssemblyA freestanding x86-64 program that prints and exits using only kernel syscalls.
Function Call Convention (System V AMD64)
AssemblyPass args in registers, preserve callee-saved regs, keep rsp 16-byte aligned.
Loop Summation (1..N)
AssemblySum integers 1..N with a counted loop using dec/jnz.
strlen — Scan Until NUL
AssemblyCompute C-string length by scanning memory until a zero byte.
memcpy — Copy with rep movsb
AssemblyUse the rep movsb string instruction for a tight memory copy.
Bit Manipulation: popcount, ctz, abs
AssemblyUse BMI/ABM instructions for branchless bit operations.
Read a File via syscalls
Assemblyopen/read/write/close a file using only Linux syscalls.
Recursive factorial
AssemblyImplement factorial(n) recursively with a proper stack frame.
Ping-Pong Processes
ErlangTwo processes pass messages back and forth using spawn and receive.
gen_server Counter
ErlangBuild a stateful server with the gen_server behaviour.
Supervisor Tree
ErlangDefine a supervisor that starts workers and restarts them on crash.
Selective Receive with References
ErlangMatch a specific reply out of many messages using a unique reference.
Links, Exit Trapping & 'Let It Crash'
ErlangUse link and trap_exit to detect process death and recover.
Stateful Server via Tail Recursion
ErlangHold mutable state in a process by threading it through recursive calls.
Parallel Map with rpc:pmap
ErlangApply a function to each list element in parallel across processes.
Hot Code Upgrade
ErlangReload a module's code without stopping the running system.