Pry.config.should_load_rc = true
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
# Greed is a dice game where you roll up to five dice to accumulate | |
# points. The following "score" function will be used to calculate the | |
# score of a single roll of the dice. | |
# | |
# A greed roll is scored as follows: | |
# | |
# * A set of three ones is 1000 points | |
# | |
# * A set of three numbers (other than ones) is worth 100 times the | |
# number. (e.g. three fives is 500 points). |
- git ls-remote: displays references available in a remote repository along with the associated commit IDs.
- git remote show {remote name}: Manage the set of repositories ("remotes") whose branches you track.
- git branch | git branch -v | git branch -vv
- git fetch {remote name}
- git pull: Fetch from and integrate with another repository or a local branch.
- git checkout -b {branch} {remote name}/{remote branch name}: checks out a new local branch and sets it up to track remote branch
Scope is a program space within which certain types of variables are visible.
Why is Global State evil? Main reasons:
- it is hard to track values and assignments of variables throughout the program
- since there is only one namespace available, naming variables, which is hard,
The following is the summary of the Mythical Man-Month aka MMM, the book that needs no introduction. It is a must-read for every participant of any software development process.
Insights sections include my personal realizations derived from the material read and are essentially a collection of a-ha moments.
- the problem : how to serve different view templates to their hybrid mobile apps and desktop clients at the same time?
- the solution: introduce a new feature to Rails. One that will enable single action to serve different templates.
- conceptually: "variant" is a symbol whose name constitutes a part
link: https://github.com/defunkt/gist
gist (options) my_gist.rb
Description | Option | Full command |
---|---|---|
single file upload | / | filename.format |
multiple file upload | / | file1 file2 file3 |
- fork the documenting-ruby/ruby repo
- open the GitHub issue regarding docs you want to rewrite/add
- make your changes to the documentation
- use RDOC to generate local HTML pages for a preview
- delete RDOC generated temp directory
- commit the changes
Blamestorming - the ultimate blame game within the working environment.
Professionals set boundary between their work and private time.
OlderNewer