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 »
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]
8
Date Submitted Thu. Aug. 24th, 2006 8:31 AM
Revision 1
Helper axsaxs
Tags Attribute | CSharp | read-only
Comments 0 comments
Set the read-only attribute of a file to true or false.
6
Date Submitted Tue. Sep. 12th, 2006 8:23 AM
Revision 1
Helper axsaxs
Tags binary | CSharp | File
Comments 1 comments
Write a set of bytes into a 'so-called' binary file. The point is that we use BinaryWriter here and we have a byte array as input.
7
Date Submitted Fri. Jul. 21st, 2006 5:48 PM
Revision 1
Beginner atujpay
Tags Validate
Comments 2 comments
So... this is a simple and great way for validate email address using regular expressions. happy programming!
9
Date Submitted Thu. Mar. 9th, 2006 10:41 PM
Revision 1
Beginner atlamp
Tags copy | File | Java | tmp
Comments 0 comments
Copy a file to a new location, optionally marking the file as a temporary file (to be deleted on application exit).

Note there are issues for temporary files - not all the parent directories that might be created are guaranteed to be deleted - only the immediate parent directory will be deleted on exit if created. Other higher-level directories will not be deleted, even if the file is marked as temporary.
3
Date Submitted Sun. Dec. 10th, 2006 2:24 PM
Revision 1
Beginner assbach
Tags Random | String
Comments 1 comments
create a random string of 16 chars
8
Date Submitted Sat. Aug. 5th, 2006 6:44 PM
Revision 1
Scripter ASmith
Tags "Yahoo Finance" | Finance | news | python | RSS
Comments 0 comments
This class allows you to retrieve a companies current stock quote from Yahoo Finance, as well as current news feed entries for that company.
9
Date Submitted Sun. Aug. 13th, 2006 10:38 PM
Revision 1
Scripter ASmith
Tags python | util
Comments 0 comments
Returns a safe copy if the value argument is mutable, otherwise returns the original argument. If the feedback keyword argument is True, then a tuple is returned containing the resulting argument, and whether or not is was mutable.
9
Date Submitted Sun. Aug. 13th, 2006 10:50 PM
Revision 1
Scripter ASmith
Tags google | python | Text | translation
Comments 1 comments
Translates text from using translate.google.com
7
Date Submitted Tue. Aug. 15th, 2006 3:24 AM
Revision 1
Scripter ASmith
Tags python
Comments 3 comments
Introduction
This function is a function that returns a function. You pass it a function, and it returns a function that takes a collection as a parameter and applies your function to it. The difference between this and map is that this returns a function that you can use again which takes a collection as a parameter.

For Example

If I had a collection c, and a function p that prints its argument, I can create a visitor function using the following:
printVisitor=createVisitor(p)

Then any time I want to print a collection I just type:
printVisitor(c)

A Better Example
If you were writing an IRC server you would probably have many functions that operated on a list of users, such as ban,makeop, etc. You could create those functions in a manor similar to the following:

banUsers=createVisitor(ban)
makeOperators=createVisitor(makeop)

Then in a seperate file you could use these functions as if they were regular functions.

you would type banUsers(users) to ban, or makeOperators(users) to promote those users.
« Previous 1 2  ...  49 50 51 52 53 54 55 56 57 Next »