Popular source snippets

» PARTICLE SWARM OPTIMIZATION
Category: Python
Visits: 278
Particle Swarm Optimization written in Python
» QUICK PASSWORD GENERATOR
Category: Ruby
Visits: 270
This is a simple, but complete (pseudo) random password generator. (Hopefully) it will serve as both a useful program, and a simple example of the use of the optparse module.
» RESET USER PASSWORD BASED ON ANOTHER USERS
Category: Ruby
Visits: 269
When you first create an app you might not have time *cough* to add special user password reset features. Especially if you don't have many users. Here's a quick script to set the password of a...
» DIFFIE-HELLMAN KEY EXCHANGE
Category: Ruby
Visits: 268
Diffie-Hellman key exchange is a nifty way to end up with the same shared secret between Alice and Bob without ever sending the secret key to the other side. It’s used in ISAKMP, SSH and a host of other...
» CREATE EXCEL SPREADSHEET
Category: VisualBasic
Visits: 265
This code dynamically creates an excel spreadsheet, some simple formatting and populates.
» FILE HEX DUMP
Category: C
Visits: 262
Output hex dump of the file.
» REMOVING EMPTY DIRECTORIES (NON-RECURSIVE)
Category: Ruby
Visits: 261
Simple class to remove empty directories.
» mysqldatabase singel connectie
Category: -
Visits: 259
mysql 0.5 user->root , password->root rest succesfull thinking
» LIST RAM USE FOR A PID
Category: Bash
Visits: 256
List RAM use in MB for a PID. Call this like get_node_ram 1234.
» SIMPLE PROCESS WATCHDOG
Category: Perl
Visits: 255
Basically, it checks to see if the process ID file is present, and if it is, checks that the process is actually running. If not, it invokes the restart command. It outputs info to syslog so you can check...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15