This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* AMORTIZATION CALCULATOR | |
* @author PRANEETH NIDARSHAN | |
* @version V1.0 | |
*/ | |
class Amortization | |
{ | |
private $loan_amount; | |
private $term_years; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class compareImages | |
{ | |
private function mimeType($i) | |
{ | |
/*returns array with mime type and if its jpg or png. Returns false if it isn't jpg or png*/ | |
$mime = getimagesize($i); | |
$return = array($mime[0],$mime[1]); | |
switch ($mime['mime']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | |
class SMTPMail extends CI_Controller { | |
/** | |
* @author Praneeth Nidarshan | |
* @see git@gist.github.com:8d54499e903d35155af6.git | |
*/ | |
public function index() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* BULK FILE AND FOLDER RENAMER | |
* @author PRANEETH NIDARSHAN | |
* @version 1.3 | |
* @email praneeth.nidarshan@gmail.com | |
*/ | |
$results = array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
var convertTableToJson = function() | |
{ | |
var rows = []; | |
$('table tr').each(function(i, n){ | |
// Ignore empty | |
if(i != 0) { | |
var $row = $(n); | |
rows.push({ | |
display_name: $row.find('td:eq(0)').text(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param array $array | |
* @param string $_key | |
* @param string $_direction | |
* @version 1.0.0 | |
* @author Praneeth Nidarshan (praneeth.nidarshan@gmail.com) | |
*/ | |
function multiArraySort(&$array, $_key,$_direction = 'desc') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$str_one = "PASS12345"; | |
$str_two = "PASSWOD45"; | |
$str_one_arr = str_split($str_one); | |
$new_arr = str_split($str_two); | |
$arr_intersect = array_intersect($new_arr, $str_one_arr); | |
$arr_changes = array_diff($new_arr, $arr_intersect); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace TinyLog; | |
/** | |
* Tiny Log Generator | |
* @Author Praneeth Nidarshan | |
* @email praneeth.nidarshan@gmail.com | |
* @version 2.5.1 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
$.notifyDefaults({ | |
placement: {from: "top", align: "center"}, | |
animate: {enter: "animated fadeInUp", exit: "animated fadeOutDown"} | |
}); | |
$('body').on('submit', 'form', function (e) { | |
e.preventDefault(); | |
$('button[type=submit]').attr('disabled', true); | |
var data = new FormData($(this)[0]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- attachment | |
- 1.jpg | |
- 2.jpg | |
... | |
... | |
... | |
- index.php | |
- resize_image.php | |
- uploader.php |
NewerOlder