Code Snippets


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

Join 86,471 Programmers. There are 1,198 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!


Programming Languages

ActionScript(83)Linux & UNIX(8)
ASP(17)Bash(9)
Assembly(22)Python(14)
C(123)Lisp(3)
C#(152)mySQL(18)
C++(321)Other Languages(27)
CGI/Perl(43)PHP(122)
ColdFusion(14)Ruby(13)
HTML/CSS(42)Scheme(19)
Java(168)VB.NET(133)
JavaScript(125)Visual Basic(102)

10 Newest Snippets

Submitted: May 14, 2008        Views: 44
This is a snippet for calculating the distance between 2 points. Each "point" is represented by the longitude & latitude for that location
Submitted: May 12, 2008        Views: 68
This is a snippet I use for applying a one way hash utilizing the SHA1CryptoServiceProvider class in .Net. I use Encoding.Unicode.GetBytes() so it will be compatible with systems already using the CAPICOM version. The CAPICOM views all input as UNICODE not text
Submitted: May 12, 2008        Views: 54
This is a snippet for applying a one way hash to a string using the CAPICOM.dll.
Submitted: May 10, 2008        Views: 64
Get a prime number by the position it is in, in the prime number sequence.
Submitted: May 10, 2008        Views: 61
A brute-force method of getting the least common multiple in a range of numbers.
Submitted: May 10, 2008        Views: 44
Returns true if a string is palindromic.
Submitted: May 7, 2008        Views: 271
Keep your Sessions on lockdown and prevent Fixation, and Hijacking with this snippet.
Submitted: May 7, 2008        Views: 90
This allow you to see what the ASCII equalivient of the button being pressed.
Submitted: May 7, 2008        Views: 88
This allows you to move and image box either by ascii or the arrow keys.
Submitted: May 7, 2008        Views: 99
Use this Abstraction layer to keep your business logic seperate. Change Options Below for either mysql or mysqli drivers. query() can return resource, associative array, or object depending on args and config. When error occurs, db::error() is called, change this to log errors or perform whatever you like, or change config 'display_errors' to be silent. Take a moment and look through the config to get a better understanding. I will release an API and user guide later to help you get started. Query() can return Resource, Associative Array, or Object Free to use and modify to your liking, just keep this comment block here. Make sure you run your vars through prepare() before using them in query() to protect against SQL Injection.

Top 5 Snippets

Submitted: November 11, 2005        Views: 111054
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: 60125
Div layer with a scroll bar
Submitted: February 25, 2005        Views: 42484
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: March 2, 2005        Views: 40148
Implements the Linked List Data Structure.
Countdown Timer in ActionScript by reyco1
Submitted: December 31, 2006        Views: 39174
good for Games! or whatever :D Written by senocular (senocular.com). Original can be found at http://www.kirupa.com/developer/actionscript/setinterval2.htm



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