One of the largest public source code databases on the internet with 29,321,478 lines of code,
articles and tutorials in 11 languages, as well as 2,618 open job postings.





Welcome

Check out the newest tutorials in each of the site's 11 different language below. Or if you want to dive right into the code, then click on any language on the right (under "Choose your Language"). In addition to code, each section is chock full of articles, tutorials, jobs and discussion too!

Once there, you can also sign up for the Code of the Day newsletter to have the best and newest code mailed to you daily. And if you're truly a hot-shot coder, then be sure to check out our coding contest, where you not only get recognition from your peers, but cool prizes too!
Sponsored by:
  • Digital root

    by Kardi Teknomo
    10/21/2011 7:28:00 AM
    9/20/2009 10:41:55 AM
    Language: Visual Basic

    Computing digital root of a a small natural number is very easy. It simply take the sum of its digit. However, when the number is so large, you need a special technique to handle large number. Here is where the tutorial goes.

  • Convert Email Messages to MHTML, MSG & EML Using Aspose.Email Java API

    by aspose_seo
    1/30/2012 2:08:51 AM
    9/20/2009 10:41:55 AM
    Language: Java/Javascript

    Steps to convert an existing Email Message to different formats.

  • Boarder Design Using Delay. In C

    by John Bryan N. Saguisag
    12/16/2011 3:42:20 AM
    9/20/2009 10:41:55 AM
    Language: C/C++

    to give informations.

  • String Cleanser (ASCII only)

    by Scouse Mouse
    7/31/2009 7:56:19 AM
    9/20/2009 10:41:55 AM
    Language: Active Server Pages/VBScript

    Simple include function to loop through a given string and (a) concatenate it to the maximum length, (b) silently drop any unwanted characters and (c) pad all single quotes with a 2nd single quote (for using in MS-SQL statements).

  • KNOWING PHYSICAL AND LOGICAL CPU COUNT OF YOUR PC.

    by Dinesh Mishra
    11/12/2011 7:45:57 AM
    9/20/2009 10:41:55 AM
    Language: SQL

    This piece of query in SQL SERVER 2005 just answers back the number of physical and logical cpu count of your computer.

  • Matrix n*n

    by Morteza Zakeri
    12/28/2010 5:12:38 AM
    9/20/2009 10:41:55 AM
    Language: Perl

    Educational

  • Dynamic Array example

    by Jerome Scott II aka codecaine
    10/29/2011 3:41:29 AM
    9/20/2009 10:41:55 AM
    Language: Delphi

    Show how to set the size of an array at runtime. I wrote this in freepascal but will work the same way in Delphi.

  • Create Thumbnails exactly the same size in CodeIgniter

    by snowboardr
    1/22/2012 6:53:33 AM
    9/20/2009 10:41:55 AM
    Language: PHP

    The purpose of this code is to show how to make equal size thumbnails in CodeIgniter.

  • Query to MS Excel

    by Tim Garver
    7/5/2008 3:56:19 PM
    9/20/2009 10:41:55 AM
    Language: Cold Fusion

    Output excel file easy with ColdFusion MX. Hi Many years ago i wrote an article here to create an excel CSV file with ColdFusion. I wanted to update this with the newer easier way to accomplish the same goal. have a search page with an output type drop box called "otype" values("web","xls","prt") Write out your page in an HTML table with the columns you want in excel. Then put an IF statement around your table or simply at the bottom of the page with links to the same page with the otype or a fo ... (see entry for full description)

  • How to create a Datatable on client side using ASP.Net AJAX

    by Shahid Riaz Bhatti
    2/2/2012 7:58:39 AM
    9/20/2009 10:41:55 AM
    Language: .Net

    In this article I will explain that how a developer can create a data table on client side (i.e. in java script) using power of ASP.Net AJAX

  • Tooltip

    by Gregory Nozik
    9/11/2011 7:30:14 AM
    9/20/2009 10:41:55 AM
    Language: Dark Basic

    One of my projects was developed on prototype java-script framework. I needed to write a functionality to show tool tip . I started to look in the prototype framework if they already have it. Unfortunately I did not find any component . I started to goggle it and did not found anything as well.