Below are the top ranked snippets.
7
Very fast method for extracting all of the unique items from a list while preserving their original ordering.
6
Reads a file line by line using Python in 3 lines
9
Reads well formed RSS entries using standard python libraries
6
Computes the difference between two dates in seconds
6
Decompress a .tar.bz2 archive in Pytho
9
Quick way to get the users home directory in Unix/Linux and Windows
6
Builds and prints a list of all links in a specified webpage
5
That is, after two starting values, each number is the sum of the two preceding numbers. The first Fibonacci numbers , also denoted as Fn, for n = 0, 1, … , are:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811…
this is One line function to get the sequance.
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811…
this is One line function to get the sequance.
4
This JScript code could be used in HTML applications (HTA) or other user-trusted web applications for saving data into files.
12
This is a mysql php pager class that I found online somewhere and modified.









