Skip to content

Instantly share code, notes, and snippets.

View Cvetomird91's full-sized avatar

Cvetomir Denchev Cvetomird91

  • Plovdiv, Bulgaria
View GitHub Profile
#include <string>
#include <iostream>
#include <cstdlib>
#include <FL/Fl.H>
#include <FL/fl_draw.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Native_File_Chooser.h>
#include <FL/Fl_Output.H>
#include <string>
#include <iostream>
#include <cstdlib>
#include <sstream>
#include <FL/Fl.H>
#include <FL/fl_draw.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Native_File_Chooser.h>
Git and GitHub:
Configuration hierarchy:
/etc/gitconfig
~/.gitconfig
$GIT_REPOSITORY/.git/config
.git/index - files added to the staging area. Git status actially parses and displays this file.
File states:
#include <stdio.h>
#include <stdlib.h>
//the first struct contains configurational data
//it will be written to the beginning of the file and always be skipped with fseek
struct Sizes {
int max_rows;
int max_data;
};
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//write struct data to a file
//the first struct contains configuration data that will be skipped when read from the file
struct Sizes {
int max_rows;
int max_data;
#include <stdio.h>
#include <stdlib.h>
//#define DO_WRITE
struct Sizes
{
int max_rows;
int max_data;
};
#include <stdio.h>
#include <stdlib.h>
struct Sizes {
int max_data;
int max_rows;
};
int main(int argc, char** argv) {
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#define MAX_DATA 512
#define MAX_ROWS 100
struct Address {
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <boost/regex.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
int main (int argc, char** argv) {
#include <string>
#include <iostream>
#include <boost/regex.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
int main(int argc, char** argv) {
boost::regex date(R"((\d{2})\.(\d{2})\.(\d{4}))");
boost::smatch match;