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
@import "normalize"; | |
.btn, %btn { | |
box-sizing: border-box; | |
border: 1px gray solid; | |
border-radius: .25rem; | |
padding: .5rem 1rem; | |
} | |
.text-white, %text-white { | |
color: #fff; | |
} |
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
{ | |
"data": [ | |
{ | |
"id": "1", | |
"name": "Tiger Nixon", | |
"position": "System Architect", | |
"salary": "$320,800", | |
"start_date": "2011/04/25", | |
"office": "Edinburgh", | |
"extn": "5421" |
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 | |
namespace EnsoStudio\PhpTokenizer; | |
use ArrayIterator; | |
use FilterIterator; | |
use SeekableIterator; | |
use OutOfBoundsException; | |
use PhpToken; |
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 | |
/** | |
* @param int $pr Identifier of Pull Request | |
* @param string $repoDir Base directory of repository | |
* @param string $package "{owner}/{repo}" | |
* @param string $docDir Repository directory of documentation | |
* @return array Files to update | |
*/ | |
function findOutdatedDocTranslations($pr, $repoDir, $package = 'yiisoft/yii2', $docDir = 'docs') |
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 | |
namespace yii\helpers; | |
use ReflectionClass; | |
use ReflectionMethod; | |
use Yii; | |
use yii\base\Action; | |
use yii\base\Application; | |
use yii\base\Behavior; |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS template</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script> | |
</head> | |
<body> | |
<main id="main"></main> |
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 | |
/** | |
* Extended plugin for Webasyst framework. | |
*/ | |
abstract class waExtendedPlugin extends waPlugin | |
{ | |
/** | |
* @var waSystem | |
*/ |
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 | |
/** | |
* HTML tag. | |
*/ | |
class Tag extends DOMElement implements TagInterface | |
{ | |
public function __construct(string $name, string $value = '') | |
{ | |
parent::__construct($name, $value); |
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
$font-dir: null !default; | |
/// | |
/// Returns font format. | |
/// | |
/// @param {string} $src The font filename | |
/// @return {string} | |
/// | |
@function font-format($src) { | |
$formats: ( |
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
/// Returns part of string. | |
/// Similar to PHP `substr()`: `substr("abc", 2, 1)` - "c", `substr("abc", 1)` - "bc", `substr("abcd", -3, -1)` - "bc". | |
/// | |
/// @param {String} $str The input string | |
/// @param {Number} $offset The returned string will start at the offset'th position in string, counting from zero | |
/// @param {Number} $length The string returned will contain at most length characters beginning from offset (optional) | |
/// @return {String} | |
/// @see https://www.php.net/manual/en/function.substr | |
@function substr($str, $offset, $length: 0) { | |
$length: if($length < 0, $length - 1, if($length == 0, str-length($str), $length)); |
NewerOlder