# Remove index.php$
if ($request_uri ~* "^(.*/)index\.php$") {
return 301 $1;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
# Remove from everywhere index.php
if ($request_uri ~* "^(./)index.php(/?)(.)") {
[opcache] | |
; Determines if Zend OPCache is enabled | |
opcache.enable=1 | |
; Determines if Zend OPCache is enabled for the CLI version of PHP | |
;opcache.enable_cli=1 | |
; The OPcache shared memory storage size. | |
opcache.memory_consumption=512 |
<?php | |
// Initiate Symfony | |
require_once __DIR__ . '/vendor/autoload.php'; | |
use Symfony\Component\Process\Process; | |
// Basic-Configuration | |
$config = [ | |
'bin' => 'bin/satis', | |
'json' => 'satis.json', |
# Remove index.php$
if ($request_uri ~* "^(.*/)index\.php$") {
return 301 $1;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
# Remove from everywhere index.php
if ($request_uri ~* "^(./)index.php(/?)(.)") {
<script> | |
(function($) { | |
$('ul.pagination li.active') | |
.prev().addClass('show-mobile') | |
.prev().addClass('show-mobile'); | |
$('ul.pagination li.active') | |
.next().addClass('show-mobile') | |
.next().addClass('show-mobile'); | |
$('ul.pagination') | |
.find('li:first-child, li:last-child, li.active') |
<div class="ncore-alo-phone"> | |
<div class="ncore-alo-ph-circle"></div> | |
<div class="ncore-alo-ph-circle-fill"></div> | |
<div class="ncore-alo-ph-img-circle delaiso"></div> | |
</div> | |
<style> | |
.ncore-alo-phone { | |
position: fixed; | |
/*visibility: hidden;*/ |
.text-overflow{ | |
display: -webkit-box; | |
-webkit-line-clamp: 2; | |
-webkit-box-orient: vertical; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} |
<?php | |
$unzip = new ZipArchive; | |
$out = $unzip->open('file-name.zip'); | |
if ($out === TRUE) { | |
$unzip->extractTo(getcwd()); | |
$unzip->close(); | |
echo 'File unzipped'; | |
} else { | |
echo 'Something went wrong?'; |
function trim(str, charlist) { | |
// example 1: trim(' Kevin van Zonneveld ') | |
// returns 1: 'Kevin van Zonneveld' | |
// example 2: trim('Hello World', 'Hdle') | |
// returns 2: 'o Wor' | |
// example 3: trim(16, 1) | |
// returns 3: '6' | |
let whitespace = [ | |
' ', |
public static List<String> findNotMatching(String sourceStr, String anotherStr){ | |
String new_souce = sourceStr.replaceAll("[^a-zA-Z ]", "").toLowerCase(); | |
anotherStr = anotherStr.replaceAll("[^a-zA-Z ]", "").toLowerCase(); | |
StringTokenizer at = new StringTokenizer(new_souce, " "); | |
StringTokenizer bt = null; | |
int i = 0, token_count = 0; | |
String token = null; | |
boolean flag = false; | |
List<String> missingWords = new ArrayList<String>(); |
<section> | |
<div class="sticky">This div will stick to the top</div> | |
</section> | |
<script> | |
$(window).scroll(function(){ | |
var sticky = $('.sticky'), | |
scroll = $(window).scrollTop(); | |
if (scroll >= 100) sticky.addClass('fixed'); |