Code Snippets


Welcome to Dream.In.Code
Getting Help is Easy!

Join 119,691 Programmers for FREE! Ask your question and get quick answers from experts. There are 2,117 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!




Programming Languages

ActionScript(89)Linux & UNIX(8)
ASP(18)Bash(12)
Assembly(26)Python(27)
C(146)Lisp(3)
C#(237)mySQL(41)
C++(429)Other Languages(35)
CGI/Perl(47)PHP(168)
ColdFusion(14)Ruby(17)
HTML/CSS(43)Scheme(19)
Java(204)VB.NET(224)
JavaScript(139)Visual Basic(114)

10 Newest Snippets

Submitted: October 12, 2008        Views: 42
A function to calculate gas mileage.
Submitted: October 13, 2008        Views: 34
Since wxWidgets is cross platform, it might be handy to be able to get the current operating system's start command, to use system() ~ that's exactly what this function does: it checks the default operating system, and returns a string of the operating system's command to start a process.
Submitted: October 10, 2008        Views: 75
Run your Program on your System Startup.
Submitted: October 9, 2008        Views: 60
It can be a little tedious to compile the wxWidgets source code, so this is a simple batch script to do it for you.
Submitted: October 9, 2008        Views: 70
A simpler way of making a toggle (or sticky) button than my previous example...
Submitted: October 9, 2008        Views: 76
Make a sticky button, i.e. a button that toggles.
Blinking text in JavaScript by BetaWar
Submitted: October 9, 2008        Views: 77
Simple script to make your text blink
Submitted: September 22, 2008        Views: 19
This code will open a socket and allow you to access anything on your email server. This snippet is based off the tutorial on gotoandlearn.com with a few changes, but if you are having trouble implementing it I would highly recommend you watch the full tutorial.
Play/Pause/Stop Sound-AS3 in ActionScript by Kerplope
Submitted: October 1, 2008        Views: 29
This snippet will set up the code necessary to play/pause and stop a sound in actionscript 3.
Submitted: September 8, 2008        Views: 39
how to add gravity when a person you made jumps so that he falls back down (like Mario). this also includes how to make the person move using the arrow keys.

Top 5 Snippets

Submitted: November 11, 2005        Views: 137246
Ever wonder how you could get partially transparent backgrounds for div boxes with only HTML/CSS? Well here's how.
Scrollable Div in HTML/CSS by deadlypetal
Submitted: April 13, 2007        Views: 76914
Div layer with a scroll bar
Submitted: March 2, 2005        Views: 51420
Implements the Linked List Data Structure.
Submitted: February 25, 2005        Views: 51280
Two functions, used to convert c++ strings from upper case to lowercase and vice versa. Each takes a string argument, and returns the converted string. Please note that parameters should be validated before passing them to the functions.
Submitted: January 4, 2006        Views: 48191
Reads and puts value in a textbox in its original text format.



Submit a Code Snippet and get a chance to win a </dream.in.code> 1GB Thumb Drive!







Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month