ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 Next »
9
Date Submitted Fri. Aug. 18th, 2006 11:06 AM
Revision 1
Scripter ASmith
Tags python
Comments 1 comments
Quick way to get the users home directory in Unix/Linux and Windows
9
Date Submitted Fri. Oct. 13th, 2006 8:03 AM
Revision 1
Scripter bertheymans
Tags chmod | linux | python | system | unix
Comments 0 comments
This python class converts a permission mask in symbolic format (the kind a diretcory listing produces, ex.: drwxr-xr-x) to a string that's usable in a chmod command.

ex.: chmod u=rwx,g=rwx,o=rwtx ~/myscripts/convert_mask.py

This can be very useful when recovering permissions from a backup.
9
Date Submitted Wed. Mar. 1st, 2006 4:43 PM
Revision 1
Helper gbarendt
Tags python
Comments 0 comments
Python example set-up script from python.org docs.
10
Date Submitted Wed. Oct. 11th, 2006 2:41 PM
Revision 1
Beginner nil_ptr
Tags permutations | permute | python
Comments 1 comments
This is snippet of code solves the interesting (and specialized) problem of generating all permutations of a list. I hope you like recursion. For exmaple:

permute( [0,1,2] )

would return

[[0,1,2],[0,2,1],[1,0,2],[1,2,0],[2,0,1],[2,1,0]]
« Previous 1 2 3 Next »