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 | |
| use ArrayAccess; | |
| use ArrayIterator; | |
| use IteratorAggregate; | |
| class Context implements ArrayAccess, IteratorAggregate | |
| { | |
| /** @var array */ | |
| private $data; |
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 | |
| class Computus | |
| { | |
| public static function gauss(int $year) | |
| { | |
| $a = $year % 19; | |
| $b = $year % 4; | |
| $c = $year % 7; |
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
| # sass-lint config generated by make-sass-lint-config v0.1.2 | |
| # | |
| # The following scss-lint Linters are not yet supported by sass-lint: | |
| # PrivateNamingConvention | |
| files: | |
| include: '**/*.s+(a|c)ss' | |
| options: | |
| formatter: stylish | |
| merge-default-rules: true |
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 | |
| final class List implements ArrayAccess | |
| { | |
| protected $type; | |
| protected $array = []; | |
| function __construct($var) | |
| { |
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
| <?xml version="1.0"?> | |
| <ruleset name="Clean Code Rules" | |
| xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | |
| xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | |
| <description> | |
| The Clean Code ruleset contains rules that enforce a clean code base. This includes rules from SOLID and object calisthenics. |
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 homestead() { | |
| ( cd ~/Homestead && vagrant $* ) | |
| } | |
| function art() { | |
| ( php artisan $* ) | |
| } |
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
| atom-text-editor { | |
| text-rendering: optimizeLegibility; | |
| -webkit-font-smoothing: antialiased; | |
| -webkit-font-feature-settings: "liga" on, "calt" on; | |
| } | |
| atom-text-editor[data-grammar*="text html"] { | |
| font-family: Monoisome; | |
| } |
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
| from django.core.validators import ValidationError | |
| from django.utils.deconstruct import deconstructible | |
| from django.utils.translation import ugettext_lazy as _ | |
| @deconstructible | |
| class FileTypeValidator(object): | |
| """ | |
| Validates that an uploaded file has an allowed extension. |
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
| from django.core.validators import ValidationError | |
| from django.utils.deconstruct import deconstructible | |
| from django.utils.translation import ugettext_lazy as _ | |
| @deconstructible | |
| class FileTypeValidator(object): | |
| """ | |
| Validates that an uploaded file has an allowed extension. |
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
| { | |
| "vars": { | |
| "@gray-base": "#000", | |
| "@gray-darker": "lighten(@gray-base, 13.5%)", | |
| "@gray-dark": "lighten(@gray-base, 20%)", | |
| "@gray": "lighten(@gray-base, 33.5%)", | |
| "@gray-light": "lighten(@gray-base, 46.7%)", | |
| "@gray-lighter": "lighten(@gray-base, 93.5%)", | |
| "@brand-primary": "darken(#428bca, 6.5%)", | |
| "@brand-success": "#5cb85c", |