This file contains hidden or 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_name localhost; | |
root "E:\LYON\NGINX\citestonginx"; | |
index index.html index.php; | |
# set expiration of assets to MAX for caching | |
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ { | |
expires max; | |
log_not_found off; | |
} |
This file contains hidden or 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
RewriteEngine On | |
RewriteCond %{HTTPS} =off [OR] | |
RewriteCond %{HTTP_HOST} !^www\. [OR] | |
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(html|php) | |
RewriteCond %{HTTP_HOST} ^(www\.)?(.+)$ | |
RewriteRule ^(index\.(html|php))|(.*)$ https://www.%2/$3 [R=301,L] |
This file contains hidden or 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
white-space: pre-wrap; /* css-3 */ | |
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ | |
white-space: -pre-wrap; /* Opera 4-6 */ | |
white-space: -o-pre-wrap; /* Opera 7 */ | |
word-wrap: break-word; /* Internet Explorer 5.5+ */ |
This file contains hidden or 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 | |
// here is where you are going to post curl. | |
$test_url = "www.example.com"; | |
// this is the content to be post. | |
$request_xml_content = "<request>this is a sample xml request</request>"; | |
// init Curl call. | |
$ch = curl_init(); | |
// set options for Curl. |
This file contains hidden or 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
var xmlHttp = createXmlHttpRequestObject(); | |
function createXmlHttpRequestObject () { | |
var xmlHttp; | |
if (window.ActiveXObject) { | |
try { | |
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); | |
} catch(e) { | |
xmlHttp = false; |
This file contains hidden or 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
// prevent text selection in IE | |
document.onselectstart = function () { return false; }; | |
// prevent anchor link drag. | |
$('selector').mousedown(function(event) { | |
event.preventDefault(); | |
}); | |
// redirect link. | |
$('selector').mouseup(function(event) { |
This file contains hidden or 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> | |
<head> | |
<title>HTML BASIC</title> | |
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script> | |
<style type="text/css" media="screen"> | |
body { | |
color: red; | |
} | |
</style> | |
</head> |
This file contains hidden or 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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php/$1 [L] |
This file contains hidden or 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
var windowWidth = window.screen.width < window.outerWidth ? | |
window.screen.width : window.outerWidth; | |
var mobile = windowWidth < 500; |
OlderNewer