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
RewriteEngine On | |
# force www | |
RewriteCond %{HTTPS} off | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteRule .* http://www.%{HTTP_HOST}/$0 [R=301,L] | |
RewriteCond %{HTTPS} on | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteRule .* https://www.%{HTTP_HOST}/$0 [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
@echo off | |
color 0E | |
echo Removing Windows 7 and 8.1 spyware updates. | |
echo To remove "spyware" updates open Command Prompt as Administrator by clicking | |
echo right mouse button. | |
echo Sometimes you need to run this file several times till "get-hotfix" no longer | |
echo find spyware updates (for ex. KB2952664 and others). | |
echo Before running the tool disable automatic update installation in Windows Update | |
echo Center. After updates are deleted, check for updates and hide ones from this | |
echo list for them not to get istalled again, then you can re-enable auto updates. |
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 | |
/** | |
* List of timezones | |
*/ | |
return array( | |
'Pacific/Midway' => '(UTC-11:00) Midway', | |
'Pacific/Niue' => '(UTC-11:00) Niue', | |
'Pacific/Pago_Pago' => '(UTC-11:00) Pago Pago', | |
'America/Adak' => '(UTC-10:00) Adak', | |
'Pacific/Honolulu' => '(UTC-10:00) Honolulu', |
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
/** | |
* Compose coordinates of svg path to represent a star | |
* @param int size | |
* @return string | |
*/ | |
var d3_star = function (size) { | |
var d18 = Math.PI / 10, | |
d36 = d18 * 2, | |
sind18 = Math.sin(d18), |