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
#include <iomanip> | |
#include <string> | |
#include <sstream> | |
std::string | |
hexDump( const unsigned char * data, unsigned int length ) | |
{ | |
std::stringstream ret; | |
for ( unsigned int i = 0; i < length; ++i ) |
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
export PS1="\[\e[34m\]\w \[\e[0m\]\` | |
if [ \$? = 0 ]; then | |
echo \[\e[32m\]\A \:\)\[\e[0m\]; | |
else | |
echo \[\e[31m\]\A \:\(\[\e[0m\]; | |
fi\` " |
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
import os | |
curr_dir = os.getcwd() | |
while curr_dir!="/" and not os.path.isfile( os.path.join( curr_dir, ".proj.sf" ) ): | |
print( curr_dir ) | |
( curr_dir, temp ) = os.path.split( curr_dir ) |
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
*.swp | |
*.log | |
covsummary | |
*~ | |
*gcov | |
*gcna | |
*gcda | |
*gcno | |
testFile | |
test.cpp |
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
trainee should source the with arguments instead of simply execute it | |
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
1. distributed <-> centralized | |
2. cloning / initing ( let's start with a repo with some ruby code ) | |
3. recording changes: | |
* git status (working tree/directory status) / git log | |
* the three states ( working directory, staging area, repository ) | |
* file status / lifecycle of a file: untracked, unmodified, modified, staged | |
* status -> add -> status -> modify -> add -> status -> commit | |
* introduce yourself -> commit -> status -> log | |
* commit -a ( easy ) |
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
*.o | |
*.so | |
*.swp | |
*~ | |
tst/test | |
tst/test.cpp | |
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
#include <iostream> | |
#include <algorithm> | |
#include <string> | |
int main() | |
{ | |
std::string word( "dog" ); | |
std::sort( word.begin(), word.end() ); | |
do { |
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
#include <cassert> | |
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <iterator> | |
std::vector< std::string > | |
getContainerFromFile( const std::string& fileName ) |
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
. |
OlderNewer