Code Examples
Short, copy-paste, runnable snippets for the tasks you do all the time.
JavaScript Array Examples
A runnable cookbook of the array tasks you reach for every day — summing, finding, sorting, de-duplicating, grouping and more. Each links to a deeper reference or how-to.
JavaScriptJavaScript Object Examples
A runnable cookbook of everyday object tasks — clone, merge, get keys and values, iterate, check a property, rename a key, count and invert — each a short snippet you can run.
JavaScriptJavaScript String Examples
A runnable cookbook of everyday string tasks — reverse, capitalize, search, replace, split, trim, pad and more — each a short snippet you can run in the browser.
Python Dictionary Examples
A runnable cookbook of everyday Python dictionary tasks — merge, get, keys, values, items, iterate, invert and count — each a short snippet you can run in the browser.
PythonPython List Examples
A runnable cookbook of everyday Python list tasks — sum, unique, flatten, filter, group and more — each a short snippet you can run in the browser.
PythonPython Loop Examples
A runnable cookbook of everyday Python loop tasks — range, enumerate, while, reverse, zip, nested loops, break and comprehensions — each a short snippet you can run in the browser.
PythonPython String Examples
A runnable cookbook of everyday Python string tasks — reverse, change case, split, join, replace, strip, search, count and format — each a short snippet you can run in the browser.
A cookbook of small, focused examples. Each entry solves a common task in a few lines, runs in the browser, and links to a deeper reference or how-to when you want the full story. It's the fastest way to grab a working snippet and get back to what you were doing.
Every example is tested and runnable — copy it as-is, or edit it in place to fit your data. Browse by language below.