Skip to content

Instantly share code, notes, and snippets.

[12:09:30] [INFO] changed log level from 'warning, error' to 'info, warning, error'
[12:09:30] [INFO] Options instance with id '1' successfully created.
[12:09:30] [INFO] Creating new connection handle...
[12:09:30] [INFO] Connection handle with id '1' successfully created.
[12:09:30] [INFO] query "DELETE FROM employees WHERE emp_no >= 500000" successfully executed within 5.134 milliseconds
[12:09:30] [INFO] query "INSERT INTO employees VALUES (500002, curdate(), 'asd', 'fgh', 'F', curdate(), NULL), (500001, curdate(), 'asd', 'fgh', 'F', curdate(), NULL), (500000, curdate(), 'asd', 'fgh', 'F', curdate(), NULL) " successfully executed within 4.395 milliseconds
[12:09:30] [INFO] query "INSERT INTO employees VALUES (500008, curdate(), 'asd', 'fgh', 'F', curdate(), NULL), (500007, curdate(), 'asd', 'fgh', 'F', curdate(), NULL), (500006, curdate(), 'asd', 'fgh', 'F', curdate(), NULL) " successfully executed within 8.645 milliseconds
[12:09:30] [INFO] query "INSERT INTO employees VALUES (500005, curdate(), 'asd', '
@maddinat0r
maddinat0r / main.cpp
Created June 4, 2017 21:44
small cpp string parser based on boost::spirit
#include <string>
#include <vector>
#include <boost/optional.hpp>
#include <boost/optional/optional_io.hpp>
#include <boost/spirit/include/qi.hpp>
namespace qi = boost::spirit::qi;
template<char Delimiter = ' ', typename... Args>
bool sscanfpp(std::string const &input, Args &...args)
@maddinat0r
maddinat0r / timer.cpp
Last active August 29, 2015 14:21
basic timer system
#include <list>
#include <functional>
#include <memory>
#include <chrono>
using std::list;
using std::function;
namespace chrono = std::chrono;
#include "../Dawn/System/CSingleton.h"