Skip to content

Instantly share code, notes, and snippets.

🍢

Matt (Murahashi Kenichi) sanemat

🍢
Block or report user

Report or block sanemat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View async-constructor.md
export class ConfigStore extends Store {
  async constructor(flux) {
    super();

    this.state = { settings: Immutable.fromJS(this.setUpDefault(defaultValues))};

    /*
     Registering action handlers
     */
@sanemat
sanemat / issues.md
Last active Aug 29, 2015
react-js-meetup
View issues.md

React.js meetup #1 #reactjs_meetup

今詰まっているところ

immutable-js

  • immutable-js の使い方がよくわかってない
    • IssueStore.js こんな感じであってるのだろうか あと、メソッド生やしたくなるんだけど、それはどこに書けばいいんだろう getSlug()とか作りたい いまはIssueList.js(components)に生やしててさすがにこれがうまくないのはわかる

karma

@sanemat
sanemat / intro-sanemat.md
Last active Aug 29, 2015
intro php study #88
View intro-sanemat.md
@sanemat
sanemat / php-lint.md
Last active Aug 29, 2015
Visualize php lint tools
View php-lint.md

静的解析をPull Request上に可視化する

あまり詳しくないのでおしえてください! 気になるところがあったらどんどん止めて。 あと、こんなことやってるので誰か手伝って!

今使ってる lintなど静的解析のコマンド、web サービスなど

  • PHP CodeSniffer
    • CodeSniffer is a tool which checks if your code is compliant with a general ruleset or your own custom ruleset.
View rubocop-result.txt
/Users/sane/RubymineProjects/fastladder/Gemfile:10:50 INFO: Prefer single-quoted strings when you don't need string interpolation or special symbols.
/Users/sane/RubymineProjects/fastladder/Gemfile:14:24 INFO: Do not use `::` for method calls.
/Users/sane/RubymineProjects/fastladder/Gemfile:15:41 INFO: Space between { and | missing.
/Users/sane/RubymineProjects/fastladder/Gemfile:15:64 INFO: Space missing inside }.
/Users/sane/RubymineProjects/fastladder/Gemfile:18:16 WARNING: Assignment in condition - you probably meant to use `==`.
/Users/sane/RubymineProjects/fastladder/Gemfile:25:17 INFO: Space found before semicolon.
/Users/sane/RubymineProjects/fastladder/Gemfile:25:22 INFO: Do not use `when x;`. Use `when x then` instead.
/Users/sane/RubymineProjects/fastladder/Gemfile:26:16 INFO: Space found before semicolon.
/Users/sane/RubymineProjects/fastladder/Gemfile:26:22 INFO: Do not use `when x;`. Use `when x then` instead.
/Users/sane/RubymineProjects/fastladder/Gemfile:27:19 INFO: Space found before semicol
View bundler-minitest.md

bundle gem checkstyle_filter-git -t minitest で生成したテストディレクトリ

[sane@indi checkstyle_filter-git]$ tree test/                                               
test/
├── minitest_helper.rb
└── test_checkstyle_filter
    └── git.rb

1 directory, 2 files
@sanemat
sanemat / some.md
Created Feb 11, 2015
bundler 1.8.0 new featureのこの記法ウレシイのだろうか…
View some.md
source "https://rubygems.org"

github "spree" do
  gem "spree_core"
  gem "spree_api"
  gem "spree_backend"
end
@sanemat
sanemat / js-support.markdown
Last active Aug 29, 2015
lintとか #tng15
View js-support.markdown

Lint for JavaScript

  • eslint
  • jscs
  • jshint
  • jslint
  • Closure Linter
  • coffeelint
  • tslint
@sanemat
sanemat / json-1-8-0.txt
Created Jan 22, 2015
json-1-8-0-with-bundler-1.7.12
View json-1-8-0.txt
```
$ bundle
Fetching gem metadata from https://rubygems.org/.......
Fetching git://github.com/lsegal/yard
Installing rake 10.1.0
Installing RedCloth 4.2.9
Installing i18n 0.6.5
Installing minitest 4.7.5
Installing multi_json 1.7.9
Installing atomic 1.1.13
You can’t perform that action at this time.