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 | |
function setFilePermissions($dir) { | |
if ($handle = opendir($dir)) { | |
while ($file = readdir($handle)) { | |
if ($file != '.' && $file != '..' && __FILE__ != $dir.'/'.$file) { | |
if (is_dir($dir.'/'.$file)) { | |
chmod($dir.'/'.$file, 0755); | |
setFilePermissions($dir.'/'.$file); | |
} else { | |
chmod($dir.'/'.$file, 0644); |
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
//------------------------- | |
// New Contrexx3 placeholders | |
//------------------------- | |
/* | |
for use in html files use --> {PLACEHOLDER_NAME} | |
for use in Contrexx3 editor please use -> [[PLACEHOLDER_NAME]] | |
*/ | |
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
# Redirecting non-www to www | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www\. | |
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] | |
# Redirecting www to non-www | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^my-domain\.com$ [NC] | |
RewriteRule ^(.*)$ http://my-domain.com/$1 [R=301,L] |
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
## EXPIRES CACHING ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
# Images | |
ExpiresByType image/gif "access plus 6 months" | |
ExpiresByType image/jpeg "access plus 6 months" | |
ExpiresByType image/png "access plus 6 months" | |
ExpiresByType image/x-icon "access 1 year" | |
# Media | |
ExpiresByType application/x-shockwave-flash "access 1 month" |
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
#Gzip | |
<ifmodule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript | |
</ifmodule> | |
#End Gzip | |
## EXPIRES CACHING ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
# Images |
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
$("#search").typeahead({ | |
remote: 'url', | |
limit: 10, | |
prefetch: { | |
url:hotelPrefetchURL, | |
filter:function(respData){ | |
var data = respData.data; | |
return data; | |
}, | |
ttl: 86400000 |
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
if( navigator.userAgent.match(/iPhone/i) ) this.webkit_css_enabled = true; | |
else if( navigator.userAgent.match(/iPod/i) ) this.webkit_css_enabled = true; | |
else if( navigator.userAgent.match(/iPad/i) ) this.webkit_css_enabled = true; | |
else if( navigator.userAgent.match(/Chrome/i) ) this.webkit_css_enabled = true; | |
else if( navigator.userAgent.match(/Safari/i) ) this.webkit_css_enabled = true; | |
// check for certain platforms | |
if( navigator.userAgent.match(/Android/i) ) this.is_android = true; | |
if( navigator.userAgent.match(/Android 2.1/i) ) this.is_android21 = true; | |
if( navigator.userAgent.match(/Android 2.2/i) ) this.is_android22 = true; |
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
netbeans directory -> etc/netbeans.conf | |
-J-XX:MaxPermSize=2048 |
OlderNewer