Skip to content

Instantly share code, notes, and snippets.

$BASED $BASED
$NewBASED $nBASED
$ROPE $ROPE
100Grand Grand
100X CASH 100X
12XCOIN 12XCOIN
1cent.io CNT
1inch Exchange Token 1inch
42-coin 42
5x Chadcoin 5XCHAD
@409H
409H / hungarian_notation.md
Created July 29, 2015 10:01
Hungarian Notation (A flavour of...)

Hungarian notation is an identifier naming convention in computer programming, in which the name of a variable or function indicates its type or intended use. There are two types of Hungarian notation: Systems Hungarian notation and Apps Hungarian notation.

This flavour is simply prefixing the variable with 3 characters to quickly identify the data type of the variable. I find it's much easier to debug your code.


String Variables

function ordinal($number) {
$ends = array('th','st','nd','rd','th','th','th','th','th','th');
$mod100 = $number % 100;
return $number . ($mod100 >= 11 && $mod100 <= 13 ? 'th' : $ends[$number % 10]);
}
?><?php
/**
* @author Ikram ALI
* @copyright 2012
*/
@define('VERSION','1.0');
@error_reporting(E_ALL ^ E_NOTICE);
@session_start();
@ini_set('error_log',NULL);
@cosimo
cosimo / custom-head.html
Created August 25, 2012 08:57
OSQA responsive layout
<meta name="viewport" content="width=device-width, initial-scale=1">