Skip to content

Instantly share code, notes, and snippets.

View sanemat's full-sized avatar
🍢

Matt Murahashi Kenichi sanemat

🍢
View GitHub Profile
# sudo /opt/td-agent/embedded/bin/fluent-gem list
actionmailer (4.1.9)
actionpack (4.1.9)
actionview (4.1.9)
activemodel (4.1.9)
activerecord (4.1.9)
activesupport (4.1.9)
addressable (2.3.6)
arel (5.0.1.20140414130214)
aws-sdk-v1 (1.63.0)
@sanemat
sanemat / async-constructor.md
Created April 30, 2015 18:19
async constructor
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 August 29, 2015 14:19
react-js-meetup

React.js meetup #1 #reactjs_meetup

今詰まっているところ

immutable-js

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

karma

@sanemat
sanemat / intro-sanemat.md
Last active August 29, 2015 14:17
intro php study #88
@sanemat
sanemat / php-lint.md
Last active August 29, 2015 14:17
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.
@sanemat
sanemat / rubocop-result.txt
Last active August 29, 2015 14:15
saddler example
/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
@sanemat
sanemat / bundler-minitest.md
Last active August 29, 2015 14:15
bundler v1.8.2

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 February 11, 2015 13:40
bundler 1.8.0 new featureのこの記法ウレシイのだろうか…
source "https://rubygems.org"

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

Lint for JavaScript

  • eslint
  • jscs
  • jshint
  • jslint
  • Closure Linter
  • coffeelint
  • tslint