Skip to content

Instantly share code, notes, and snippets.

<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
/**
* b.boldbaatar
*
* xml tool for array to xml
* @author HiimelOyun Dev Team
@broject
broject / HO_number_helper
Created January 14, 2018 12:32
money to text
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
if (!function_exists('number_str')) {
function number_str($number) {
$strp = strpos($number, '.');
$n = $strp > 0 ? substr($number, 0, $strp) : $number;
@broject
broject / python_types_casts
Created January 17, 2018 04:05
tuple vs list vs dict, repr vs str with eval cast
class Point3D(object):
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z
def __repr__(self):
return str(self.z)
def __str__(self):