Below are the top ranked snippets.

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

« Previous 1 2  ...  49 50 51 52 53 54 55 56 57 Next »
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. Dec. 27th, 2006 9:40 AM
Revision 1
Scripter bertheymans
Tags Java | List | Set | uniqueness
Comments 2 comments
This is a very convenient way to remove all doubles from a List in Java. The only prerequisite is that the elements in the list have proper equals and hashCode methods.

It work by using the constructor of a Set that takes a Collection as an argument.

I poured the snippet in a little program so can run it straight away.
5
Date Submitted Thu. Feb. 22nd, 2007 4:14 PM
Revision 1
Helper BerndSchiffer
Tags Category | Inlinetest | RegExp | SwingBuilder
Comments 0 comments
Ein Kilometerfresser mit Groovy Console, Inlinetests, Groovy Beans, der Meta-Objekt-Programmierung, Swing, GStrings, Regulären Ausdrücken und Closures gebaut. Läuft mit Groovy 1.0 in der Groovy Console.

A Mile-Eater build with Groovy Console, inline tests, Groovy Beans, Meta-Object-Programming, Swing, GStrings, regular expressions und closures. Runs with Groovy 1.0 in the Groovy Console.
3
Date Submitted Thu. Nov. 15th, 2007 2:37 PM
Revision 1
Helper BerndSchiffer
Tags groovy
Comments 1 comments
Answer to a groovier solution to Hamlet D'Arcy's Rot13 algorithm. This is the refactored version with less redundance.
4
Date Submitted Mon. Mar. 31st, 2008 6:10 PM
Revision 1
Beginner berkeley_mikeg
Tags explorer | IE | Internet | override | proxy
Comments 0 comments
I have created this sippet because I VPN into work to check problems or e-mail and had to change my IE settings to surf the internet. With this sippet, once configured will allow you to override your internet explorer proxy settings to connect and browse the internet with one double click of the mouse or as I have done, add it to my VPN profile auto starter and it reconfigures my internet browser after i'm connected.
(this will shut the browser if it's running, make the changes and launch it with the changed configuration)
5
Date Submitted Mon. Aug. 13th, 2007 12:04 AM
Revision 1
Beginner bcoe
Tags Java | RSS | SAX | XML
Comments 0 comments
From a tutorial on building an RSS SAX parser on my website:

full article can be found here
10
Date Submitted Sat. Mar. 25th, 2006 9:32 PM
Revision 1
Beginner baldo
Tags Calendar | CSS | definition | HTML | List | xhml
Comments 3 comments
this is a css to style a definition list to get a calendar list type.

See the final render.
8
Date Submitted Fri. Aug. 4th, 2006 4:16 AM
Revision 1
Helper axsaxs
Tags File | I/O
Comments 0 comments
Class method to read a binary file and copy it to a byte array.
4
Removes every sub-directory in a directory tree that has its name equal to [string] or containing [string] starting from [initial_directory].
4
Date Submitted Fri. Aug. 18th, 2006 7:25 AM
Revision 1
Helper axsaxs
Tags Delete | Files | pattern
Comments 0 comments
Walks every subdirectory starting from [initial_dir] and deletes every file in it that contains in its filename a [string]
« Previous 1 2  ...  49 50 51 52 53 54 55 56 57 Next »