|
Code Library
Source code snippets in various programming languages, including .NET, PHP and Javascript.
| Title |
Date |
Category |
Rate |
Author |
Views |
| URL Reconstruction Using PHP |
April 23, 2008 |
PHP |
0 |
Andrei Pociu |
0 |
| Mask All Credit Card Digits But Last Four |
April 23, 2008 |
Ruby |
0 |
Andrei Pociu |
22 |
| MD5 Encryption Using Java |
April 19, 2008 |
Java |
0 |
Andrei Pociu |
96 |
| Checksum CRC32 Calculator |
April 19, 2008 |
C# |
0 |
Andrei Pociu |
132 |
| Draw Rounded Corner Rectangles Using C# |
April 17, 2008 |
C# |
0 |
Andrei Pociu |
222 |
| Play MP3 Files Using C# |
April 17, 2008 |
C# |
5 |
Andrei Pociu |
327 |
| Set Image Opacity Using C# |
April 16, 2008 |
C# |
0 |
Andrei Pociu |
173 |
| Extract Age from Birth Date |
April 16, 2008 |
Ruby on Rails |
0 |
Andrei Pociu |
111 |
| FTP Connection Using PHP |
April 09, 2008 |
PHP |
0 |
Andrei Pociu |
229 |
| Initiate Download Using ASP.NET and VB.NET |
April 04, 2008 |
ASP.NET |
3 |
Andrei Pociu |
332 |
| Check If MySQL Table Exists |
April 04, 2008 |
MySQL |
0 |
Andrei Pociu |
401 |
| Rotate Array in JavaScript |
April 04, 2008 |
JavaScript |
0 |
Andrei Pociu |
208 |
| Basic Bitwise Operations in Pascal |
April 04, 2008 |
Pascal |
0 |
Andrei Pociu |
156 |
| Get Unix Time using C# |
March 19, 2008 |
C# |
0 |
Andrei Pociu |
477 |
| Initiate download using ASP.NET |
March 19, 2008 |
ASP.NET |
0 |
Andrei Pociu |
268 |
| Crossbrowser getElementById() function |
March 19, 2008 |
JavaScript |
0 |
Andrei Pociu |
274 |
| Get window width and height |
March 16, 2008 |
JavaScript |
0 |
Andrei Pociu |
591 |
| Extract the file extension using PHP |
March 16, 2008 |
PHP |
0 |
Andrei Pociu |
383 |
| Standardize string to a strict format |
March 16, 2008 |
PHP |
0 |
Andrei Pociu |
175 |
| Ask for confirmation on form submit |
March 16, 2008 |
JavaScript |
5 |
Andrei Pociu |
322 |
| Greatest common divisor w/ the Euclidian algorithm |
March 16, 2008 |
Java |
1 |
Andrei Pociu |
229 |
| Function to test for primality |
March 16, 2008 |
Java |
0 |
Andrei Pociu |
77 |
| Check if string is numeric |
March 16, 2008 |
C# |
0 |
Andrei Pociu |
403 |
| Outline All CSS Elements |
March 07, 2008 |
CSS |
0 |
Andrei Pociu |
270 |
| Efficiently get a Random Array Element |
March 07, 2008 |
PHP |
3 |
Andrei Pociu |
236 |
| Alternating Row Colors |
March 07, 2008 |
PHP |
0 |
Andrei Pociu |
252 |
| Get the Last Day of the Month |
March 07, 2008 |
Java |
5 |
Andrei Pociu |
507 |
| Pronouncable Random Password Generator |
March 04, 2008 |
Ruby on Rails |
0 |
Andrei Pociu |
501 |
| Array of States and their Territory Code |
March 04, 2008 |
PHP |
0 |
Andrei Pociu |
175 |
| Array of Street Types and their Abbreviations |
March 04, 2008 |
PHP |
0 |
Andrei Pociu |
184 |
| Get the modified date and time of a file using PHP |
February 29, 2008 |
PHP |
5 |
Andrei Pociu |
366 |
| Array of States and their Coordinates |
February 29, 2008 |
Ruby on Rails |
0 |
Andrei Pociu |
182 |
| Preload images using JavaScript |
February 09, 2008 |
JavaScript |
1 |
Andrei Pociu |
1026 |
| Array of States and their Abbreviation |
February 09, 2008 |
Ruby |
5 |
Andrei Pociu |
479 |
| Verify the version of Internet Explorer being used |
February 09, 2008 |
JavaScript |
5 |
Andrei Pociu |
500 |
| Calculate age using C# |
February 09, 2008 |
C# |
3.5 |
Andrei Pociu |
1276 |
| Crop a Picture using C# |
February 01, 2008 |
C# |
5 |
Andrei Pociu |
2346 |
| Calculate age from birth date |
January 18, 2008 |
PHP |
2.33 |
Andrei Pociu |
1852 |
| 301 Permanent Redirect using ASP.NET |
January 18, 2008 |
ASP.NET |
2.33 |
Andrei Pociu |
681 |
| Back, Forward and Refresh using JavaScript |
January 17, 2008 |
JavaScript |
4.5 |
Andrei Pociu |
1075 |
| Get the Last Day of the Month |
January 16, 2008 |
JavaScript |
3.75 |
Andrei Pociu |
1140 |
| Array of States and their Abbreviation |
January 16, 2008 |
PHP |
4 |
Andrei Pociu |
499 |
| Parsing a Tab Delimited File |
January 16, 2008 |
PHP |
3 |
Andrei Pociu |
665 |
| Get the greatest common divisor |
January 09, 2008 |
JavaScript |
0 |
Andrei Pociu |
615 |
| Get the week number of a given date |
January 09, 2008 |
C# |
5 |
Andrei Pociu |
1529 |
| Get Real Angle Value |
January 09, 2008 |
JavaScript |
0 |
Andrei Pociu |
314 |
| Submit form on selection of dropdown item |
January 08, 2008 |
JavaScript |
3.5 |
Andrei Pociu |
610 |
| Swap string case using JavaScript |
January 06, 2008 |
JavaScript |
0 |
Andrei Pociu |
554 |
| Find Easter Sunday of any year |
January 06, 2008 |
C# |
0 |
Andrei Pociu |
496 |
| Check credit card checksum |
January 06, 2008 |
Python |
5 |
Andrei Pociu |
360 |
| Retrieve PageRank using PHP |
January 01, 2008 |
PHP |
5 |
Andrei Pociu |
1078 |
| Converting from binary to decimal and back |
December 24, 2007 |
Python |
5 |
Andrei Pociu |
705 |
| Read content of file or URL into a string |
December 24, 2007 |
PHP |
3 |
Andrei Pociu |
845 |
| Capitalize each word in a string |
December 16, 2007 |
C# |
2.5 |
Andrei Pociu |
1208 |
| Trim leading and trailing spaces |
December 16, 2007 |
JavaScript |
0 |
Andrei Pociu |
621 |
| Inverse hex colors |
December 09, 2007 |
Ruby on Rails |
0 |
Andrei Pociu |
579 |
| Validate phone number using RegEx and JavaScript |
November 22, 2007 |
JavaScript |
4.67 |
Andrei Pociu |
2126 |
| Strip HTML tags using Ruby |
November 22, 2007 |
Ruby on Rails |
5 |
Andrei Pociu |
2012 |
| Generate Random Password using Ruby |
November 22, 2007 |
Ruby on Rails |
5 |
Andrei Pociu |
1404 |
| Redirect using PHP |
November 17, 2007 |
PHP |
5 |
Andrei Pociu |
1013 |
| Check URL validity using JavaScript |
November 17, 2007 |
JavaScript |
1 |
Andrei Pociu |
1575 |
| Drop-down list of US states |
November 16, 2007 |
HTML |
3.6 |
Andrei Pociu |
1222 |
| Drop-down list of countries |
November 16, 2007 |
HTML |
4.5 |
Andrei Pociu |
584 |
| Convert ASCII values from hex to characters |
November 15, 2007 |
C# |
5 |
Andrei Pociu |
3515 |
| Get a list of installed printers |
November 14, 2007 |
C# |
5 |
Andrei Pociu |
1362 |
| Check / uncheck all checkboxes in a form |
November 11, 2007 |
JavaScript |
2 |
Andrei Pociu |
1178 |
| Check if a string ends with another string |
November 11, 2007 |
PHP |
2.67 |
Andrei Pociu |
1146 |
| Convert hexadecimal value to RGB |
November 06, 2007 |
ActionScript |
0 |
Andrei Pociu |
1320 |
| Reverse a linked list |
November 06, 2007 |
C++ |
4.5 |
Andrei Pociu |
2689 |
| Detect operating system from user agent string |
November 03, 2007 |
PHP |
4.57 |
Andrei Pociu |
2522 |
| Write a string to a file |
November 03, 2007 |
PHP |
0 |
Andrei Pociu |
689 |
| Detect multiple instances of the application |
November 02, 2007 |
VB.NET |
3.67 |
Andrei Pociu |
1247 |
| Check if an URL is available |
October 27, 2007 |
Ruby on Rails |
1 |
Andrei Pociu |
845 |
| Retrieve a list of disk drives using C# |
October 18, 2007 |
C# |
4 |
Andrei Pociu |
1602 |
| Pass values and retrieve response from Command Prompt |
October 18, 2007 |
C# |
4.5 |
Andrei Pociu |
1889 |
| Using vectors to calculate the average |
October 17, 2007 |
C++ |
0 |
Andrei Pociu |
1392 |
| Generate random password |
October 16, 2007 |
C# |
2 |
Andrei Pociu |
2367 |
| Put a string into byte array |
October 14, 2007 |
C# |
5 |
Andrei Pociu |
2283 |
| Calculate the age in years using PHP |
October 13, 2007 |
PHP |
1 |
Andrei Pociu |
1187 |
| List the content of a directory/folder using PHP |
October 13, 2007 |
PHP |
3.67 |
Andrei Pociu |
1171 |
| Shut down system using C# |
October 13, 2007 |
C# |
3.99 |
Andrei Pociu |
3156 |
| Validate phone number using RegEx and Java |
October 11, 2007 |
Java |
4 |
Andrei Pociu |
2131 |
| Read file to output stream and return its state |
October 11, 2007 |
C++ |
5 |
Andrei Pociu |
1228 |
| Validate a string for a certain amount of numbers |
October 11, 2007 |
Ruby on Rails |
0 |
Andrei Pociu |
608 |
| Calculate the age in years using C# |
October 09, 2007 |
C# |
4 |
Andrei Pociu |
1703 |
| Get the number of days in a month using Ruby |
October 09, 2007 |
Ruby on Rails |
3.5 |
Andrei Pociu |
1241 |
| Getting a list of all the files in a directory |
October 06, 2007 |
C# |
4.5 |
Andrei Pociu |
1852 |
| Check if VIN number is valid |
October 05, 2007 |
PHP |
5 |
Andrei Pociu |
1728 |
| Convert a number from digits to words |
October 04, 2007 |
JavaScript |
3.67 |
Andrei Pociu |
1856 |
| Add to favorites/bookmarks in Internet Explorer and Firefox |
October 04, 2007 |
JavaScript |
3.75 |
Andrei Pociu |
3167 |
| Draw rounded corner rectangles |
October 04, 2007 |
C# |
4.5 |
Andrei Pociu |
1752 |
| Shorten a string with complete words |
October 02, 2007 |
Ruby on Rails |
2 |
Andrei Pociu |
741 |
| Find out where a TinyUrl.com url points to |
October 02, 2007 |
PHP |
0 |
Andrei Pociu |
1044 |
| Basic file based hit counter |
September 30, 2007 |
PHP |
0 |
Andrei Pociu |
775 |
| Get a list of the files in the clipboard |
September 30, 2007 |
VB.NET |
0 |
Andrei Pociu |
969 |
| Trim leading and trailing spaces |
September 29, 2007 |
JavaScript |
5 |
Andrei Pociu |
1162 |
| Strip HTML using JavaScript |
September 29, 2007 |
JavaScript |
3 |
Andrei Pociu |
2447 |
| Writing a file using I/O in Java |
September 28, 2007 |
Java |
1 |
Andrei Pociu |
1267 |
| Validate email addresses using VB.NET |
September 28, 2007 |
VB.NET |
5 |
Andrei Pociu |
1411 |
| Zoom div by percentage using CSS |
September 28, 2007 |
CSS |
4.67 |
Andrei Pociu |
1103 |
| Validate email addresses using PHP |
September 27, 2007 |
PHP |
0 |
Andrei Pociu |
983 |
| WhoIs function for domain-name info |
September 27, 2007 |
PHP |
5 |
Andrei Pociu |
1149 |
| Check for prime numbers |
September 26, 2007 |
PHP |
1 |
Andrei Pociu |
1540 |
| Calculate grade average with weights |
September 26, 2007 |
C++ |
3 |
Andrei Pociu |
2671 |
| Forcing downloads with PHP |
September 25, 2007 |
PHP |
0 |
Andrei Pociu |
958 |
| Check if HTTP connection to website is available |
September 23, 2007 |
C# |
4.5 |
Andrei Pociu |
5310 |
| Search all stored procedures for keyword |
September 21, 2007 |
SQL |
2.5 |
Andrei Pociu |
947 |
| Generate random password of various strength |
September 21, 2007 |
PHP |
1 |
Andrei Pociu |
2645 |
| Sending emails using C# |
September 20, 2007 |
C# |
3.67 |
Andrei Pociu |
2613 |
| Method for resizing pictures with aspect ratio |
September 20, 2007 |
C# |
2 |
Andrei Pociu |
2112 |
| A function that formats date and time |
September 20, 2007 |
PHP |
0 |
Andrei Pociu |
658 |
| Validating credit card numbers |
September 19, 2007 |
JavaScript |
4.33 |
Andrei Pociu |
3569 |
| Quicksort algorithm and character count |
September 12, 2007 |
C++ |
5 |
Andrei Pociu |
3423 |
| Encrypting a string using the MD5 algorithm |
September 12, 2007 |
C# |
5 |
Andrei Pociu |
2780 |
| Get the file extension |
September 12, 2007 |
PHP |
0 |
Andrei Pociu |
889 |
| Stripping string of URL unsafe characters |
September 11, 2007 |
PHP |
5 |
Andrei Pociu |
929 |
|
|