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
export class ConfigStore extends Store {
  async constructor(flux) {

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

     Registering action handlers
sanemat /
Last active Aug 29, 2015

React.js meetup #1 #reactjs_meetup



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


sanemat /
Last active Aug 29, 2015
intro php study #88
sanemat /
Last active Aug 29, 2015
Visualize php lint tools

静的解析を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

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

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

1 directory, 2 files
sanemat /
Created Feb 11, 2015
bundler 1.8.0 new featureのこの記法ウレシイのだろうか…
source ""

github "spree" do
  gem "spree_core"
  gem "spree_api"
  gem "spree_backend"
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 / json-1-8-0.txt
Created Jan 22, 2015
View json-1-8-0.txt
$ bundle
Fetching gem metadata from
Fetching git://
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.