TemperTemper
SnippetsEditorCLI
SnippetsEditorCLI

Code Snippets

Copy, run, and learn from real code examples. Runnable, polyglot snippets for best patterns, algorithms, and repetitive tasks.

General

704

Code samples and patterns for everyday tasks

  • Random Hex ColorColors
  • Get Last Array ElementArrays
  • Is Leap YearDates
  • Shuffle ArrayArrays
Browse all general

Utilities

297

Interactive tools, converters, and generators

  • Hex to DecimalMath
  • Detect Mobile DeviceBrowser
  • Generate UUID v7Generators
  • Format OrdinalFormatting
Browse all utilities

Algorithms

170

Computational solutions with defined complexity

  • Merge IntervalsArrays
  • Merge SortSorting
  • Is PrimeMath
  • Longest Increasing SubsequenceArrays
Browse all algorithms

Boilerplates

9

Runnable templates and starting points

  • ThrottleAsync
  • SleepAsync
  • Sequential PromisesAsync
  • Timeout PromiseAsync
Browse all boilerplates
These snippets are open source. Contribute on GitHub