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 <iomanip> | |
#include <ctime> | |
#include <fstream> | |
#include <string> | |
std::ostream & format_2_l0(std::ostream & iStream) | |
{ | |
return iStream << std::setw(2) << std::setfill('0'); | |
} |
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 <string> | |
#include <vector> | |
#include <algorithm> | |
struct Donnees | |
{ | |
int m_1; | |
std::string m_2; | |
float m_3; |
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 <map> | |
#include <sstream> | |
/** | |
* Converts a number into its french representation | |
* | |
* @see http://fr.wikipedia.org/wiki/Adjectif_num%C3%A9ral | |
*/ | |
class Convertisseur |
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
#ifndef IBM_ERRORS | |
#define IBM_ERRORS | |
/** | |
* C'est un peu la fête du slip les codes d'erreurs en macros | |
*/ | |
#define ERREUR_MARCEL_A_TROP_BU 1 | |
#define ERREUR_ROBERT_A_TROP_MANGE 2 | |
# define ERREUR_Y_A_PLUS_DE_PASTIS 3 |
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 <initializer_list> | |
struct Point { | |
int m_a; | |
int m_b; | |
Point() : | |
m_a(0), m_b(0) { | |
} |
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 <string> | |
#include <vector> | |
#include <map> | |
#include <utility> | |
struct guy | |
{ | |
std::string name_; | |
float mark_; |
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 <string> | |
#include <map> | |
#include <iostream> | |
#include <utility> | |
#include <functional> | |
struct Interface { | |
virtual void method() = 0; // May be a visitor pattern | |
}; |
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
function shrunken_dir(){ | |
SEP="/" | |
ESC_SEP="\\$SEP" | |
HEADER_SIZE=5 | |
SIZE_MAX=$1 | |
current_disp=`pwd` | |
seen_path_max_length=$((SIZE_MAX-HEADER_SIZE)) | |
current_seen_path=$(echo "$current_disp"|tr -s "$SEP") | |
nb_dirs=0 | |
seen_path_length=$(expr length "$current_seen_path") |
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 <chrono> | |
#include <thread> | |
#include <ctime> | |
#include <atomic> | |
void called() { | |
std::cout << "Coucou !" << std::endl; | |
} |
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 <array> | |
#include <cstdlib> | |
#include <functional> | |
#include <iostream> | |
#include <tuple> | |
#include <set> | |
#include <map> | |
#include <vector> | |
namespace colorscale { |
OlderNewer