Sharing some random tidbits I learned throughout the week.
bundle exec rake resque:workto start a Resque worker.tail logs/jobs.log
- Use
has_keywhen testing named hashes in minitest. - When debugging with byebug,
egives you the error. - Thor is a toolkit for building command line interfaces.
- Virtualenv is a development environment for python to isolate dependencies
- Kind of like bundler for Ruby projects
- Viscosity is an OpenVPN client for Mac & Windows
ActiveRecord::Base#unscopedreturns a scope for a model without previously set scopes VERIFY which class has this method
class Post < ActiveRecord::Base
def self.default_scope
where published: true
end
end
Post.all # "SELCT * FROM posts WHERE published = true"
Post.unscoped.all # "SELECT * FROM posts"- The 90/10 Strategy involves deploying 90% of one’s investment capital in low risk investments and 10% in high risk investments.
- A Valium Picnic is a slang word for a slow trading day / market holiday.
- Valium is the proprietary name for diazepam, a pharmaceutical drug known for causing drowsiness.
- Margin is borrowed money used to purchase securities.
- Gains and losses amplified.
- Interest on borrowed money.
- Leverage is the use of borrowed capital such as margin to increase potential return of an investment.
- CPP, the Canadian Pension Plan and the United States Social Security Benefits
- Contributions made through payroll deductions.
- Weekly Vim
rto replace the character under your key- Remapped
HandLjump to the beginning and end of the line. set wildmenufor a nice menu when using:{command}completion- map
jjto<ESCin insert mode to quickly leave insert mode.