Below are the top ranked snippets.
5
Generate prime numbers blow some limit using the Sieve of Eratosthenes algorithm. This snippet uses some object abstractions to simplify the algorithm.
5
Generate prime numbers below some limit. This snippet uses groovy categories to locate the appropriate methods in common classes.
5
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.
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.
5
This small snippet will not allow _POST requests from a 'foreign' domain. It relies on the HTTP_REFERER variable.
5
A simple implementation of IServiceProvider for use in plugin style architectures.
5
Reg exp for finding url and email adresses. i'm using this from any projects of me. they working
5
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.
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.
5
Simple set of functions for capturing and manipulating the className member of an HTMLElement
5
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...
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...
5
AJAX based submit form and use PHP to get results...
Very easy to use and understand, hope you will find it useful and easily edit it to fit your needs.
Very easy to use and understand, hope you will find it useful and easily edit it to fit your needs.









