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 »
5
Date Submitted Sat. Apr. 21st, 2007 7:04 PM
Revision 1
Helper TimboTheGreat
Tags speech | tts | VBSCRIPT | voice
Comments 0 comments
This script demonstrates the use of the Speech API via VBScript. Simply type in the word or phrase that you want to the computer to speak and click OK. Useful for vocalizing the results of a function or literally reading a text file to the user.

Note: To successfully run this code you MUST have the Speech API installed. The Speech API is installed during a complete Office install. If the required libraries are not present on your system, search Microsoft.com for the speech API SDK download. See this page for help on setting up Text To Speech: http://support.microsoft.com/kb/306902/
9
Date Submitted Sun. Apr. 29th, 2007 4:42 PM
Revision 1
Helper Nico
Tags API | Class | message | PHP | Send | SMS
Comments 5 comments
This PHP class allows you to send SMS to almost every country directly from your website. All you need is an account on www.tm4b.com and PHP 5.

Also required is either cURL or allow_url_fopen enabled in php.ini
5
Date Submitted Sun. Apr. 29th, 2007 10:02 PM
Revision 1
Helper esumerfd
Tags "Sieve | Eratosthenes" | groovy | of | primes
Comments 0 comments
Generate prime numbers blow some limit using the Sieve of Eratosthenes algorithm. This snippet uses some object abstractions to simplify the algorithm.
5
Date Submitted Sun. Apr. 29th, 2007 10:04 PM
Revision 1
Helper esumerfd
Tags "Sieve | Eratosthenes" | groovy | of | primes
Comments 0 comments
Generate prime numbers below some limit. This snippet uses groovy categories to locate the appropriate methods in common classes.
7
Date Submitted Sat. May. 12th, 2007 10:38 AM
Revision 1
Helper albud
Tags colour | JavaScript | palette | web-safe
Comments 1 comments
A websafe colour palette generator in JavaScript. Coded this after looking at http://www.bytemycode.com/snippets/snippet/585/ and wanting to do it differently.

It's been refactored so that:
* can pass generateColourPalette an arbitrary array of colour codes and it'll generate a palette.
* it hooks into the page through the external file
* uses an internal stylesheet instead of inline styles
5
Date Submitted Sun. May. 20th, 2007 4:45 AM
Revision 1
Scripter SecondV
Tags engine | parser | template
Comments 1 comments
This class implements a simple template engine that works by replacing text.

It can read a template file into a string. Then it searches and replaces all occurrences of the template place holder marks with the values of one or more template arguments.
6
Date Submitted Sun. May. 20th, 2007 4:51 AM
Revision 1
Scripter SecondV
Tags "mysql class" | Database | mysql | SQL
Comments 0 comments
This class is a MySQL database access wrapper. It can:

- Connect to a MySQL server
- Execute SQL queries and retrieve single value results or return result rows into arrays
- Return the last inserted table row identifier, the number of result rows and the number of affected rows
- Count the number of executed queries
- Lock and unlock tables
- Escape text literal values or like patterns
- Retrieve database access errors
7
Date Submitted Sun. May. 20th, 2007 5:17 AM
Revision 1
Scripter SecondV
Tags "extract keywords" | "search engine" | keywords
Comments 1 comments
This class can be used to retrieve the search words entered by an user in a search engine site that lead the user to the current page.

The class can parse the HTTP_REFERER variable if present. Then it can detect which search engine site lead the user to the current page, and extract the search words.

Currently the following engines are supported:

- Google
- Yahoo
- MSN
- AllTheWeb
- LookSmart
- AskJeeves
10
Date Submitted Sun. May. 20th, 2007 5:27 AM
Revision 1
Scripter SecondV
Tags Online | PHP | URL
Comments 1 comments
This simple function will check if a url is valid (going by parse_url()) and if it's 'online' - by seeing if it returns a 302, 301, or 200 status code.
5
Date Submitted Sun. May. 20th, 2007 10:58 PM
Revision 1
Scripter SecondV
Tags allow | deny | DOMAIN | PHP | post
Comments 3 comments
This small snippet will not allow _POST requests from a 'foreign' domain. It relies on the HTTP_REFERER variable.
« Previous 1 2  ...  49 50 51 52 53 54 55 56 57 Next »