Skip to content

Instantly share code, notes, and snippets.

int zeroCount = 0;
double reiz = 1;
for (int x = 0; x < n; x++) {
if (arr[x] == 0) {
zeroCount++;
}
if (zeroCount == 2) {
break;
}
<?php
/**
* This class provides a simple interface for OpenID (1.1 and 2.0) authentication.
* Supports Yadis discovery.
* The authentication process is stateless/dumb.
*
* Usage:
* Sign-on with OpenID is a two step process:
* Step one is authentication with the provider:
* <code>