Popular source snippets
-
» ADD A LITTLE GRAPHICS TO YOUR CONSOLE
Category: C++
Visits: 618
- Here is an example on how to put at least lines and circles onto your windows console display. Yes, you have to jump through a hoop to do it. Dev-C++ can do this thanks to some BCX generated code. You have...
-
» PLOT Y = SIN(X) ON A PAINTBOX COMPONENT
Category: Delphi
Visits: 589
- Just to give you an idea what Delphi can do, here is a plot of the ever popular sin(x). I have put enough information into the code comments so you can build the form. The PaintBox Paint Event takes care of...
-
» UNIT TESTING HELPER: REDIRECTS DEBUG ASSERT MESSAGES TO CONSOLE OUTPUT
Category: C#
Visits: 587
- Redirects Debug Assert dialog messages to console output. Debug assertions are written to NUnit's Console output tab instead of displaying in a message box.
-
» SAMPLE CODE FOR TAKING USER INPUT FROM SHELL
Category: Java
Visits: 584
- Sample code for taking input from Shell demonstrating string and int input
For simple programs or testing purpose its not always required to take input thru GUI.
-
» VALIDATE AN EMAIL ADDRESS USING REGULAR EXPRESSIONS
Category: PHP
Visits: 562
- If you want a PHP script to verify an email address then use this quick and simple PHP regular expression for email validation. This is also case-insensitive, so it will treat all characters as lower case....
-
» WORKING WITH WORD VIA COM
Category: Python
Visits: 547
- A quick class for working with Word via COM in Python. By far, not all of the power of Word is available here, but it's a good start for simple tas
-
» EXPERIMENTING WITH THE STL LIST
Category: C++
Visits: 533
- Using the C++ Standard Template Libraries (STL) can be easy, once you know how to do it. No need to putz around with doubly linked lists anymore! Here is code showing how a STL list allows you to add,...
-
» BETTER RANDOM NUMBER CLASS
Category: C++
Visits: 528
- A powerful pseudorandom number generator wrapped in a user friendly class. Designed as a replacement for rand().
-
» BIND A CONTROL TO AN ENUMERATION
Category: C#
Visits: 528
- Create your enumeration and call the function enum YourEnum { value1 = 0, value2 = 1, value3 = 99 ...... }
-
» IMAGE BANNER ROTATION
Category: Javascript
Visits: 514
- Banner Rotation script allows you to rotate any type of advertisement on your website. Whether it is a text, banner image or both of them, it will rotate them with each refresh of the page.