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
let arr = []; | |
$('*[data-uniqueid="637612369"] tr').each((e,i)=>{ if($(i).hasClass("even") || $(i).hasClass("odd")) { var l = ($(i).children('td:first').text().split('.')).length; var ll = $(i).children('td:first').text().split('.')[l-1]; arr.push(ll); } }) | |
console.log(arr); | |
// run all lines sapratlly |
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
{"lastUpload":"2019-07-23T05:27:49.714Z","extensionVersion":"v3.4.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 config($key, $default =null) { | |
$file = strtok($key,'.'); | |
$folderPath = __DIR__ . '\\..\\..\\config\\'.$file.'.php'; | |
$value = $default; | |
try { | |
$value = require($folderPath); | |
$keys = strtok('.'); | |
} catch (\Exception $e) { | |
return $default; | |
} |
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
$("html, body").animate({ scrollTop: $(document).height() }, 1000); |
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
const debounce = (func, delay) => { | |
let inDebounce | |
return function() { | |
const context = this | |
const args = arguments | |
clearTimeout(inDebounce) | |
inDebounce = setTimeout(() => func.apply(context, args), delay) | |
} | |
} |
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 lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>table</title> | |
<!-- Add this to <head> --> | |
<link type="text/css" rel="stylesheet" href="https://unpkg.com/bootstrap/dist/css/bootstrap.min.css"/> | |
<link type="text/css" rel="stylesheet" href="https://unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.css"/> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script> | |
<!-- Add this after vue.js --> |
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
class CommonFunctions | |
{ | |
public static function sanitize_number($number) | |
{ | |
return filter_var($number, FILTER_SANITIZE_NUMBER_INT); | |
} | |
public static function sanitize_decimal($decimal) | |
{ | |
return filter_var($decimal, FILTER_SANITIZE_NUMBER_FLOAT); |
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
envpath="$PATH" | |
sum=0 | |
IFS=':' | |
read -ra ADDR <<< "$envpath" | |
for x in "${ADDR[@]}"; do | |
cd "$x" | |
for y in `ls -l | grep -E "[d\-](([rw\-]{2})x){1,3}"`; do | |
sum=$((1 + sum)) | |
done | |
done |
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
<table> | |
<tr> | |
<th> Header Name </th> | |
<th> Header Details </th> | |
</tr> | |
<tr> | |
<tr> | |
<% | |
// Printing the request and response header | |
Enumeration header = request.getHeaderNames(); |
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
<form method="post" enctype="multipart/form-data"> | |
<input type="file" id="file" name="files[]" multiple /> | |
<input type="submit" value="Upload" class="btn btn-success"/> | |
</form> | |
<?php | |
$valid_formats = array("c", "cpp", "php", "java", "bat", "js" ,"sql" ,"html"); | |
$max_file_size = 1024*5000; //100 kb | |
$path = "myfiles/"; // Upload directory | |
$count = 0; |