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 ([email protected]) | |
*/ | |
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
(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 | |
namespace TinyLog; | |
/** | |
* Tiny Log Generator | |
* @Author Praneeth Nidarshan | |
* @email [email protected] | |
* @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
- attachment | |
- 1.jpg | |
- 2.jpg | |
... | |
... | |
... | |
- index.php | |
- resize_image.php | |
- uploader.php |
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 | |
/** | |
* TIMEZONE GRABBER | |
* @author PRANEETH NIDARSHAN | |
*/ | |
$zones = timezone_identifiers_list(); | |
$new_list = 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>API TEST</title> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-8 col-md-offset-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
/*! | |
* Select2 4.0.3 | |
* https://select2.github.io | |
* | |
* Released under the MIT license | |
* https://github.com/select2/select2/blob/master/LICENSE.md | |
*/ | |
(function (factory) { | |
if (typeof define === 'function' && define.amd) { | |
// AMD. Register as an anonymous module. |
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 [email protected] | |
*/ | |
$results = array(); |
NewerOlder