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
function circle (ctx, x, y, r) { | |
ctx.beginPath(); | |
ctx.arc(x, y, r, 0, 2 * Math.PI, false); | |
} | |
function strokeCircle (ctx, x, y, r) { | |
ctx.beginPath(); | |
ctx.arc(x, y, r, 0, 2 * Math.PI, false); | |
ctx.stroke(); | |
} |
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
(function (w, defaultNamespaceURI) { | |
"use strict"; | |
var namespaceURI = defaultNamespaceURI; | |
function toObj (node) { | |
if (node == null) { | |
return null; | |
} |
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 | |
define(JSON_ERROR_NONE, 0); | |
define(JSON_ERROR_DEPTH, 1); | |
define(JSON_ERROR_STATE_MISMATCH, 2); | |
define(JSON_ERROR_CTRL_CHAR, 3); | |
define(JSON_ERROR_SYNTAX, 4); | |
define(JSON_ERROR_UTF8, 5); | |
define(JSON_ERROR_RECURSION, 6); | |
define(JSON_ERROR_INF_OR_NAN, 7); | |
define(JSON_ERROR_UNSUPPORTED_TYPE, 8); |
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 | |
/** | |
* Get http status message from code | |
* | |
* @param number $code | |
* @return string | |
*/ | |
function status_message_from_code ($code = NULL) { | |
switch ($code) { | |
case 100: |
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 | |
/** | |
* Convert error code to friendly readable string. | |
* http://php.net/manual/ru/errorfunc.constants.php | |
* | |
* @param number $type | |
* @return string | |
*/ | |
function friendly_error_type ($type) { | |
switch($type) { |
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 | |
/** | |
* http_responce_code function polyfill. | |
* http://php.net/manual/en/function.http-response-code.php | |
* | |
* @param number $code | |
* @return string | |
*/ | |
if (!function_exists('http_response_code')) { | |
function http_response_code ($code = NULL) { |
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 | |
/** | |
* http_responce_code function polyfill. | |
* http://php.net/manual/en/function.http-response-code.php | |
* | |
* @param number $code | |
* @return string | |
*/ | |
if (!function_exists('http_response_code')) { | |
function http_response_code ($code = NULL) { |
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
# MIT License | |
# Copyright (c) 2018 Aleksandr Yefremov | |
# Extension to Apache Server Configs v3.0.0 | |
# https://github.com/h5bp/server-configs-apache | |
# For the case when mod_expires.c is not available | |
# Also it does not depend on mod_mime.c since relies only on file extension. | |
<IfModule !mod_expires.c> | |
<IfModule mod_headers.c> |
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
/* Most browsers will display elements with the following default values */ | |
a:link, a:visited { | |
color: (internal value); | |
text-decoration: underline; | |
cursor: auto; | |
} | |
a:link:active, a:visited:active { | |
color: (internal value); | |
} |
NewerOlder