 
        
  
    
      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
    
  
  
    
  | mvn install:install-file -Dfile=target.jar -DgroupId=fr.company -DartifactId=groupId -Dversion=3.2.3 -Dpackaging=jar | 
  
    
      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
    
  
  
    
  | QMAKE_CXXFLAGS += -std=c++0x | 
  
    
      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
    
  
  
    
  | #in qt makefile | |
| QMAKE_CXXFLAGS = -Wno-write-strings | 
  
    
      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
    
  
  
    
  | #include <cctype> | |
| bool stringutils::isNum(char *s) { | |
| int i = 0, flag; | |
| while(s[i]){ | |
| //if there is a letter in a string then string is not a number | |
| if(isalpha(s[i])){ | |
| flag = 0; | |
| break; | 
  
    
      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
    
  
  
    
  | for(std::vector<customStruct>::iterator it = my_vect.begin(); it != my_vect.end(); ++it) { | |
| if (code==(*it).code_value) | |
| return true; | |
| } | 
  
    
      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
    
  
  
    
  | typedef struct statusCodeStruct | |
| { | |
| int code_value; | |
| std::string code_phrase; | |
| statusCodeStruct(int code_value,std::string code_phrase) : | |
| code_value(code_value), code_phrase(code_phrase){} | |
| } statusCode; | |
| static std::vector<statusCodeStruct> http_status_code_list; | 
  
    
      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
    
  
  
    
  | //##################### CLASSIC MAP ############################### | |
| std::map<std::string,std::string> map; | |
| if (map.find(key)!=map.end()){ | |
| //key was found | |
| } | |
| else{ | |
| //key not found | |
| } | |
| //#################### POINTER MAP ################################# | 
  
    
      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
    
  
  
    
  | rsync -avm --include=*/ --include=*.h --exclude=* project/ project/release | |
| # >ls release | |
| # project_subdir1 | |
| # project_subdir2 | |
| # project_subdir3 | |
| # executable | |
| # for qmake QMAKE_POST_LINK +=$$quote(rsync -avm --include=*/ --include=*.h --exclude=* $${PWD}/ $${PWD}/$${DESTDIR}) | 
OlderNewer