Skip to content

Instantly share code, notes, and snippets.

André Catita andreCatita

Block or report user

Report or block andreCatita

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
andreCatita / iso7064_mod11_2.php
Last active Dec 18, 2015
PHP Example of ISO 7064 Mod 11,2 or Modulus 11,2 of the norm ISO/IEC 7064. Is is not very used, that's why I am sharing.
View iso7064_mod11_2.php
class Iso7064mod112 {
public $code;
public function encode($code) {
$this->code = $code;
$c = $this->computeCheck($this->code);
if ($c == 10) {
andreCatita / gist:5216677
Last active Dec 15, 2015
The reason for this snippet, is to have gettext always combined with sprintf in a easy accessible way.
View gist:5216677
* gettext aliases
* Singular, Plural integrated with sprintf
function _t() {
$args = func_get_args();
You can’t perform that action at this time.