Below are the top ranked snippets.

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

« Previous 1 2 3 4 5 6 7 8 9  ...  55 56 Next »
4
Date Submitted Fri. Jul. 20th, 2007 7:34 PM
Revision 1
Scripter ColdKeyboard
Tags Array | debug | Show
Comments 0 comments
Very useful function that you can use to debug/show your array and it's contents.

Sometimes when you have problems with arrays and print_r() isn't very nice way to show array values because it shows everything in one line and then it is very hard to debug... this way I think it's much much easier.
5
Date Submitted Fri. Jul. 20th, 2007 7:22 PM
Revision 1
Scripter ColdKeyboard
Tags 11 | Generator | Modulus | Number
Comments 0 comments
This module is used to generate the unique number and self check the numbers in social security, band accounts and etc.

Here you can find detailed explanation:
http://www.eclectica.ca/howto/modulus-11-self-check.php?start=1&count=5&generate=Generate#calculator

I have made this scirpt generate numbers in drop down list and write brojevi.txt file that you can download with numbers you have generated...
3
Date Submitted Sun. Jul. 15th, 2007 2:52 PM
Revision 1
Helper rugi
Tags Config | datasource | Spring | WebLogicServer
Comments 0 comments
Config in Spring a DataSource for WeblogicServe
4
Date Submitted Wed. Jul. 4th, 2007 8:50 AM
Revision 1
Beginner drillman
Tags "extract keywords" | "search string" | google
Comments 2 comments
This snippet extracts the keywords or search phrases from a Google referral. It also sets variables for the search engine, date and web page which received the referral if you want to log the data to a file or database. The variables are $engine, $finalphrase (keyword phrase), $page(referred web page), and $date.
4
Date Submitted Fri. Jun. 29th, 2007 9:40 PM
Revision 1
Beginner bhmahler
Tags "VB.NET"
Comments 1 comments
There are two methods in this example. One uses directory services the other uses API. Both will return a list of computer names on your network
5
Date Submitted Sat. Jun. 16th, 2007 6:07 AM
Revision 1
Scripter Fordiman
Tags Class | HTML | JavaScript
Comments 1 comments
Simple set of functions for capturing and manipulating the className member of an HTMLElement
6
Date Submitted Mon. Jun. 4th, 2007 3:06 PM
Revision 1
Scripter Fordiman
Tags "object passing" | JavaScript | PHP | serialize
Comments 6 comments
This is a quick set of overrides for Javascript so that any variable can be passed to PHP in a GET/POST activity. Just call myVar.toPHP();

I use this little set of functions extensively in a little Javascript/PHP RPC handler I wrote. I don't have the reverse function, as I pass JSON back to the browser for the return value.

Note: This lib is not safe for binaries or HTML Elements. The former will come out similar to FTP ASCII breaks, and the latter will cause infinite recursion. If you want to make a speical case for HTML Elements, do so; you could probably just test for parentNode and create a 'safe' object from that. I didn't need it, so I didn't code it.

As for binary safety, at some point between toPHP/escape/post/urldecode/unserialize, the object breaks. Rather than create a huge fix for something I didn't need to do, I put in a quick match/hack. Don't like it? Write the fix yourself.
10
Date Submitted Mon. Jun. 4th, 2007 2:37 PM
Revision 1
Scripter Fordiman
Tags createElement | JavaScript | kiss
Comments 1 comments
This is a function I created to ease headaches caused by creating and inserting new stuff in an HTML document dynamically. Essentially, it allows you to specify an HTML tag, in its entirety (attributes, styles, event handling, etc), via a single command. You can nest it, so as to create an entire element tree programmatically in a lot less time as with document.createElement.

Don't let the goofy function acronym fool you; this is damned powerful.

First, the function spec:
HTMLElement acne(type[,attributes[,styles[,events[,children[,parent[,document]]]]]]);

Arguments:
String type: type of element to create; same information as the argument of document.createElement
mixed Object attributes: attributes you want the new element to have (ie: href, src)
mixed Object styles: styles for the new element (ie: width, borderLeft)
(function|function Array) Object events: event handlers for the new element
HTMLElement|HTMLElement Array children: elements you want to be in the new element (ie: nesting is possible)
HTMLElement parent: parent node of object
HTMLDocument document: document to create element in

Return value: The newly created/configured element
7
Date Submitted Fri. Jun. 1st, 2007 7:30 PM
Revision 1
Helper albud
Tags aspects | design | PHP
Comments 3 comments
A proof of concept idea I had for implementing an aspect oriented framework in PHP (yes, I know about http://aophp.net, but it requires a module).

I thought it was neat, so I'm going to share it.

Hope someone likes it.
5
Date Submitted Tue. May. 29th, 2007 5:57 PM
Revision 1
Beginner ashraf_eme
Tags "ASP.NET 2.0" | "CSharp" | Fibonacci
Comments 0 comments
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.
« Previous 1 2 3 4 5 6 7 8 9  ...  55 56 Next »