ルール | 内容 |
---|---|
Generic.WhiteSpace.DisallowTabIndent.TabsUsed | インデントにハードタブを使っている。ソフトタブにすること |
Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine | メソッドの開始ブレスは、改行すること |
CakePHP.Commenting.FunctionComment.Missing | phpdocのコメントがない |
CakePHP.WhiteSpace.TabAndSpace | タブとスペースに関するエラー。インデント揃えのための複数スペースはダメなど。 |
Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed | インデント揃えをするためにハードタブを使ってはならない。スペースを使うこと |
Squiz.WhiteSpace.SuperfluousWhitespace.EndLine | 行末などに不要なスペースがある。もしくは、スペースのみの行がある。 |
CakePHP.WhiteSpace.CommaSpacing | 関数コールで引数を渡すとき、カンマの前にスペースがある場合など |
CakePHP.NamingConventions.ValidFunctionName.PrivateMethodInCore | これはなぞ。 |
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
" # general | |
set autoupdategist " gistの設定を自動反映 | |
let scrollstep = 150 | |
let fullpagescrollpercent = 100 | |
set smoothscroll | |
set noautofocus " サイトを開いた時に入力欄にフォーカスが奪われるのを抑止 | |
let searchlimit = 20 | |
let barposition = "bottom" |
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
PhpStorm noinspection | |
MessDetectorValidationInspection | |
PhpAbstractStaticMethodInspection | |
PhpAssignmentInConditionInspection | |
PhpAssignmentReplaceableWithOperatorAssignmentInspection | |
PhpAssignmentReplaceableWithPrefixExpressionInspection | |
PhpCSValidationInspection | |
PhpClassNamingConventionInspection | |
PhpConstantNamingConventionInspection |
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 Foo\Queue\Contract; | |
interface Client | |
{ | |
public static function get_instance(); | |
public function message($mesage); | |
} |
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
$bench_start = microtime(true); | |
$process_at_least = 0.05; | |
foreach (range(1,3000) as $i){ | |
$process_start = microtime(true); | |
usleep(0.05 * 1000000); | |
$process_end = microtime(true); | |
$process_time = $process_end - $process_start; | |
echo 'proc:', $process_time,PHP_EOL; | |
if($process_at_least < $process_time){ |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
(function($){ | |
$(function(){ | |
var Page = { | |
myProp:[], | |
selector:'#foo', | |
init: function(){ |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
sync-settings