Popular source snippets

» SEND CUSTOM UDP PACKETS IN RUBY
Category: Ruby
Visits: 352
A simple way to send custom UDP packets.
» RECURSIVE AVL BINARY SEARCH TREE
Category: Java
Visits: 351
This code demonstrates AVL insertion and deletion. The code was originally written in C by myself a little while back for a tutorial. The translation to Java was fairly trivial, and to add a little...
» CTREECTRL WM_CONTEXTMENU WORKAROUND
Category: C++
Visits: 351
Handle NM_RCLICK to get the WM_CONTEXTMENU to work as expected with a CTreeCtrl class. Without this workaround the WM_CONTEXTMENU never fires when it is supposed to.
» SIMPLE COMMAND LINE MAILINGLIST
Category: Perl
Visits: 348
This code reads an email-list stored in the file"emailist.txt". This file contains all adresses delimited by "\n", i.e. one column of emails. However, you have to have sendmail installed.
» CUBIC EQUATION SOLVER
Category: C
Visits: 346
This program uses a Newton-Raphson method to approximate one root and then find the other two roots by solving the left-over quadratic equation.
» EXAMINE WEB SITE COOKIES
Category: C#
Visits: 345
Simple C# code, to see what cookies a Web Site uses.
» MILLER RABIN PRIMALITY TEST
Category: Python
Visits: 330
MillerRabin(n, s = 1000) -> bool Checks whether n is prime or not. This is an extremely fast algorithm designed to test very large numbers. s is the number of tests to perform. The chance that...
» HASH PASSWORD
Category: Ruby
Visits: 326
Hashes a password using SHA1
» CLEARING CONTROLS & FORMS IN MS ACCESS
Category: VisualBasic
Visits: 316
The simplest way to clear controls & forms in access while using VBA
» ARGUMENT HELPER
Category: C#
Visits: 315
Provides helper methods for asserting arguments.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15