This file contains 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 " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
set expandtab | |
set tabstop=2 | |
set shiftwidth=2 | |
set splitright | |
set number |
This file contains 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
CIAOOO OOOOCOCOO |
This file contains 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
ciao | |
class Hello | |
end | |
Hello.new |
This file contains 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
gem install be_boolean | |
Usage: | |
expect(value).to be_boolean |
This file contains 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
.btn.btn-default { | |
min-width: 112px; | |
width: 116px; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
overflow: hidden; | |
} | |
.btn.btn-danger { | |
min-width: 112px; | |
width: 116px; |
This file contains 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
gem install lasslo | |
Lasslo.unique 10, :user |
This file contains 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
pg_restore --verbose --host localhost --username {USERNAME} --clean --no-owner --no-acl --dbname {DB} latest.dump |
This file contains 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
config.generators do |g| | |
g.test_framework :rspec, | |
:fixtures => true, | |
:view_specs => true, | |
:helper_specs => true, | |
:routing_specs => true, | |
:controller_specs => true, | |
:request_specs => true | |
g.fixture_replacement :factory_girl, :dir => "spec/factories" | |
end |
This file contains 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 self.get(url, params) | |
conn = Faraday.new | |
response = conn.get url + "?" + params, {} | |
end |
This file contains 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
scope :to_do, lambda { where(:processed => false) } | |
scope :processed, lambda { where(:processed => true) } | |
scope :to_do_now, lambda { where("due_date > ? AND due_date < ?", DateTime.now, DateTime.now + 3.minutes) } | |
scope :not_processed, lambda { where(:processed => false) } | |
scope :circular, lambda { where("minutes IS NOT NULL") } |