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
/--.*?\n|#.*|\/\*.*[\s\S]*\*\/ |
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
zend_extension=xdebug.so | |
xdebug.remote_enable=on | |
xdebug.max_nesting_level=256 | |
xdebug.remote_autostart = 1 | |
xdebug.remote_log="/tmp/xdebug.log" | |
xdebug.profiler_enable = 0 | |
xdebug.profiler_enable_trigger = 1 | |
xdebug.profiler_output_name = cachegrind.out-%H-%R |
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"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Worker</title> | |
</head> | |
<body> |
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 asyncLoop(array, func, callback) { | |
var iterations = array.length; | |
var index = 0; | |
var done = false; | |
var loop = { | |
next: function() { | |
if (done) { | |
return; | |
} |
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
server { | |
listen 80; | |
server_name 192.168.0.1; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
root /srv/www/public_html; | |
index index.php; | |
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ { |
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 | |
header('Content-type: image/png'); | |
$image = "/var/www/html/images/image.TIFF"; | |
$im = new Imagick($image); | |
// resize by 500 width and keep the ratio | |
$im->thumbnailImage(500, 0); | |
//Set new image format 'PNG8' | |
$im->setImageFormat("PNG8"); |
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
*~ | |
# KDE directory preferences | |
.directory | |
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm | |
/*.iml | |
NewerOlder