I hereby claim:
- I am neamtua on github.
- I am neamtua (https://keybase.io/neamtua) on keybase.
- I have a public key whose fingerprint is 9312 8617 982A F7A8 781D 0680 975A 99D0 EE0A 13C3
To claim this, I am signing this object:
function _resize($a,$target_width=600,$target_height=600,$marker='thumb_') { | |
$this->load->library('image_lib'); | |
$ret = array('poza'=>'','error'=>''); | |
$size = getimagesize('./uploads/'.$a['file_name']); | |
$a['image_width'] = $size[0]; | |
$a['image_height'] = $size[1]; | |
if ($a['image_width'] > $target_width || $a['image_height'] > $target_height) | |
{ | |
if ($a['image_width'] > $target_width && $a['image_height'] > $target_height) | |
$master_dim = 'auto'; |
<?php | |
$startTime = microtime(); | |
# config | |
$dir = './'; // path to folder of images | |
$recursive = true; // scan all folders in selected path, recursively | |
$imageExtensions = array('jpg', 'png', 'gif', 'jpeg'); // the image types you want to display | |
$perPage = 16; // how many images to show per page (multiple of 4 recommended) | |
$showFileInfo = true; // display file information beneath the image | |
$isAdmin = false; // display delete option for each image |
I hereby claim:
To claim this, I am signing this object:
<script type="text/javascript"> | |
/* in order to update info on your checkout page you need to trigger update_checkout function | |
so add this in your javascript file for your theme or plugin | |
*/ | |
jQuery('body').trigger('update_checkout'); | |
/* what this does is update the order review table but what it doesn't do is update shipping costs; | |
the calculate_shipping function of your shipping class will not be called again; | |
so if you were like me and you made a shipping method plugin and you had to change costs based on payment method then |