git add -p
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
| /* Copyright (c) Mark J. Kilgard, 1994, 1997. */ | |
| /** | |
| (c) Copyright 1993, Silicon Graphics, Inc. | |
| ALL RIGHTS RESERVED | |
| Permission to use, copy, modify, and distribute this software | |
| for any purpose and without fee is hereby granted, provided |
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
| # Zsh commands reminder | |
| ## Create an alias for a directory | |
| ``` | |
| hash -d name=~path | |
| ``` | |
| ## Sources |
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
| // Source: http://codereview.stackexchange.com/questions/95464/is-the-copy-swap-idiom-implemented-here-correctly | |
| class Array | |
| { | |
| int size; | |
| int* data; | |
| public: | |
| Array(Array const& copy) | |
| : size(copy.size) | |
| , data(new int[size]) |
NewerOlder