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
| ls . | xargs -I file vim -d file /comparable_folder/file |
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
| class SuggestedUsers | |
| attr_reader :user, :options | |
| def initialize(user, options = nil) | |
| @user = user | |
| @options = options || {} | |
| end | |
| def suggested_users | |
| User.joins('JOIN follows as follows_follows ON follows_follows.followee_id = users.id') |
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
| class SuggestedUsers | |
| attr_reader :user | |
| def initialize(user) | |
| @user = user | |
| end | |
| def suggested_users | |
| User.joins('JOIN follows as follows_follows ON follows_follows.followee_id = users.id') | |
| .joins('JOIN follows as user_follows ON follows_follows.follower_id = user_follows.followee_id') |
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
| set nocompatible | |
| " ======================================================================== | |
| " Vundle stuff | |
| " ======================================================================== | |
| filetype off | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() | |
| " Let Vundle manage Vundle (required)! |
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
| " Begin .vimrc | |
| " | |
| set nocompatible | |
| " | |
| " ================ | |
| " Ruby stuff | |
| " ================ | |
| if filereadable(expand("~/.vimrc.bundles")) | |
| source ~/.vimrc.bundles | |
| endif |
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
| " Begin .vimrc | |
| " | |
| set nocompatible | |
| " | |
| " ================ | |
| " Ruby stuff | |
| " ================ | |
| if filereadable(expand("~/.vimrc.bundles")) | |
| source ~/.vimrc.bundles | |
| endif |
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
| " Begin .vimrc | |
| " | |
| set nocompatible | |
| " | |
| " ================ | |
| " Ruby stuff | |
| " ================ | |
| if filereadable(expand("~/.vimrc.bundles")) | |
| source ~/.vimrc.bundles |
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
| a = Tempfile.new('e') | |
| => #<File:/var/folders/xq/42ckp5s51v7gtnwdmnn4r_5m0000gn/T/e20130716-67827-148wsqy> | |
| a == a | |
| => true | |
| a === a | |
| => false |
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
| expected: #<File:/tmp/coucou20130716-1190-14ky45y-0> | |
| got: #<File:/tmp/coucou20130716-1190-14ky45y-0> (using ==) |
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
| class Track | |
| def_delegator ActiveSupport::Notifications, :instrument | |
| def self.post_creation(post, user) | |
| instrument 'post.creation' , { user_id: user.id, post_id: post.id } | |
| end | |
| end |