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
| # Call me anywhere | |
| SlackBot.notify |
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
| mysql> show processlist; | |
| +----+------+-----------+-------------+---------+------+-------+-----------------------+ | |
| | Id | User | Host | db | Command | Time | State | Info | | |
| +----+------+-----------+-------------+---------+------+-------+-----------------------+ | |
| | 1 | root | localhost | foo_dev | Sleep | 3737 | | NULL | | |
| | 3 | root | localhost | bar_dev | Query | 0 | init | show full processlist | | |
| +----+------+-----------+-------------+---------+------+-------+-----------------------+ | |
| 2 rows in set (0.00 sec) |
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
| module FactoryGirl | |
| # @api private | |
| class Configuration | |
| attr_reader :factories, :sequences, :traits, :strategies, :callback_names | |
| def initialize | |
| @factories = Decorator::DisallowsDuplicatesRegistry.new(Registry.new('Factory')) | |
| @sequences = Decorator::DisallowsDuplicatesRegistry.new(Registry.new('Sequence')) | |
| @traits = Decorator::DisallowsDuplicatesRegistry.new(Registry.new('Trait')) | |
| @strategies = Registry.new('Strategy') |
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
| Rails.application.config.another_logger.info('bar') |
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
| https://slack.com/api/chat.postMessage?channel=<channel_name>&text=<text>&token=<your_token>&username=<bot_name> |
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
| 93.184.216.119 - - [08/Apr/2014:11:30:15 +0900] "GET /api/v1/items HTTP/1.1" 500 4373 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36" |
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
| # [[1,1,1],[2,3],[4]] の場合、 | |
| [1, 1 ,1] | |
| [2, 3 ] | |
| [4 ] | |
| ↓↓↓ 列(タテ)方向に足し合わせる | |
| [7, 4, 1] |
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
| # Pick the frameworks you want: | |
| require "active_model/railtie" | |
| require "active_record/railtie" | |
| require "action_controller/railtie" | |
| require "action_mailer/railtie" | |
| require "action_view/railtie" | |
| require "sprockets/railtie" |
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
| def expect(*target, &target_block) |
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
| $ export BUNDLER_EDITOR=vim |
NewerOlder