Rule | Namespace | Description |
---|---|---|
Arrays.ArrayBracketSpacing | /Squiz.Arrays.ArrayBracketSpacing | Ensure that there are no spaces around square brackets. |
Arrays.ArrayDeclaration | /Squiz.Arrays.ArrayDeclaration | Ensures that arrays conform to the array coding standard. |
Arrays.DisallowLongArraySyntax | /Generic.Arrays.DisallowLongArraySyntax | Bans the use of the PHP long array syntax. |
Arrays.DisallowShortArraySyntax | /Generic.Arrays.DisallowShortArraySyntax | Bans the use of the PHP short array syntax. |
CSS.BrowserSpecificStyles | /MySource.CSS.BrowserSpecificStyles | Ensure that browser-specific styles are not used. |
CSS.ClassDefinitionClosingBraceSpace | /Squiz.CSS.ClassDefinitionClosingBraceSpace | Ensure there is a single blank line after the closing brace of a class definition. |
CSS.ClassDefinitionNameSpacing | /Squiz.CSS.ClassDefinitionNameSpacing | Ensure there are no blank lines between the names of classes/IDs. |
CSS.ClassDefinitionOpeningBrace |
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
import math | |
from math import cos, sin, ceil, floor | |
import numpy as np | |
from numpy import arcsin | |
from numpy.linalg import norm | |
from .graph_utils import plot_duo, plot_multiple, plot_xy | |
class FlightModel: | |
def __init__(self): | |
""" |
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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-RemoteDesktop | |
cinst laragon.portable | |
cinst chrome | |
cinst heidisql | |
cinst composer | |
cinst slack | |
cinst phpstorm | |
cinst vscode |
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
const http = require('http'); | |
const httpProxy = require('http-proxy'); | |
const express = require('express'), | |
bodyParser = require('body-parser'); | |
// listen port | |
const port = 9997; | |
// create proxy server | |
const proxy = httpProxy.createProxyServer({}); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
$params = require(__DIR__ . '/params.php'); | |
$config = [ | |
'id' => 'test', | |
'basePath' => dirname(__DIR__), | |
'bootstrap' => ['log'], | |
'language' => 'lt-LT', | |
'components' => [ |
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
Error | |
PHP Fatal Error – yii\base\ErrorException | |
Maximum function nesting level of '100' reached, aborting! | |
1. in /var/www/vendor/composer/ClassLoader.php at line 310 | |
301302303304305306307308309310311312313314315316317318319 | |
if ($file === 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 | |
namespace tests\unit\models; | |
use app\tests\fixtures\UserFixture; | |
use Yii; | |
use yii\codeception\DbTestCase; | |
use Codeception\Specify; | |
use Codeception\Util\Debug; | |
use app\models\User; |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../chart-js/chart-js.html"> | |
<link rel="import" href="../cool-clock/cool-clock.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
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
http://blog.scalyr.com/2013/11/25/angular-optimizations-released/ | |
http://davej.github.io/angular-classy/ | |
http://tylermcginnis.com/angularjs-factory-vs-service-vs-provider/ |
NewerOlder