CodeCodex — Main Page
ARCHIVE SNAPSHOT · RESTORED FROM 2007

CodeCodex

A community-built library of ready-to-use code, kept alive one contribution at a time.

$ browse –language=any
ABOUT

What is CodeCodex?

CodeCodex started as a wiki built for one purpose: stop reinventing the wheel. Every entry was free to read, copy into a real project, and improved again by the next person who found a cleaner way to do it.

  • Browse and reuse code that’s already been written.
  • Pick up new algorithms and techniques from working examples.
  • Drop snippets straight into your own projects.
  • Help sharpen entries that are already in the library.
PHILOSOPHY

What set it apart

Most code repositories freeze the moment something gets published. CodeCodex worked the other way around — entries kept getting better as more hands touched them, the same iterative spirit that drives a wiki, turned toward source code instead of encyclopedia entries.

PARTICIPATE

Get involved

  • Ask for code you need but can’t find anywhere.
  • Answer a request someone else left open.
  • Stop by the Community Portal.
  • Submit something from your own toolbox.
  • Hunt the web for a useful class or function worth adding.
CATEGORIES

Tag cloud

CHANGELOG

News

27 September 2007
reCAPTCHA & MediaWiki update
A CAPTCHA layer went in to keep spam out — and each one solved helps digitize a public-domain book on the side. Regular contributors won’t see it at all. The wiki engine was also bumped up to MediaWiki 1.11.
— WikiSysop
19 August 2007
New server
Recurring slowdowns on the old host pushed the move to a faster machine, with no downtime expected along the way.
— WikiSysop
19 February 2007
Syntax highlighting
Markup support landed for hundreds of languages and file types, with notes at the bottom of each page on how to switch it on.
— WikiSysop
LIBRARY

Recently edited

Java

  • Calculate the factorial of a number
  • Calculate a triangle number
  • Trim whitespace from a string
  • Implementing flood fill
  • Bresenham’s line algorithm
  • Generate a random password
  • Fibonacci sequence
  • Hello world

C

  • Calculate the factorial of a number
  • Filesystem object information
  • I/O with timeout
  • Implementing flood fill
  • Bresenham’s line algorithm
  • Monty Hall problem analysis
  • Quicksort
  • Hello world

Objective Caml

  • Remove blanks from a string
  • Draw a scatter plot
  • Calculate the sum over a container
  • Implementing flood fill
  • Derivative
  • Bresenham’s line algorithm
  • Shuffle an array
  • Hello world

Python

  • Calculate the factorial of a number
  • Spam prefiltering
  • Determine the size of a file
  • Generate a random password
  • Shuffle an array
  • Monty Hall problem analysis
  • Quicksort
  • Hello world
last sync 00:18 · 5 oct 2007  ·  67,375 reads logged  ·  content carried under the GNU Free Documentation License