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
// timestamp.hpp /////////////////////////////////////////////////////////////// | |
#include <pqxx/pqxx> | |
#include <date/date.h> | |
#include <string> | |
namespace asdf | |
{ | |
using timestamp = date::sys_time< std::chrono::microseconds >; | |
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 <type_traits> | |
namespace | |
{ | |
struct basic_traits {}; | |
template< | |
typename Traits, |
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
{ | |
"name" : "TruBlu v1.3 Dark", | |
"author" : "Joseph Durel [jadematrix.art@gmail.com]", | |
"variables" : { | |
"foreground" : "#a8cae4", // light blue-grey | |
"background" : "#163850", // dark blue-grey | |
"special" : "#3293d8", // bright blue | |
"out_of_band" : "#b98d00", // gold | |
"literal" : "#ffffff", // white | |
"line_highlight" : "#1d547c", // pale blue-grey |
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
/* | |
Tuple support for `separated_list()`, `tablewriter`, `tablereader` | |
https://github.com/jtv/libpqxx/issues/97 | |
clang++ -std=c++11 -Linstall/lib -Iinstall/include -lpqxx -lpq tablewriter_example.cpp -o tablewriter_example | |
*/ | |
// #define PQXX_HAVE_OPTIONAL | |
#include <pqxx/pqxx> |
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
DROP DATABASE IF EXISTS tablewriter_tuple_test; | |
CREATE DATABASE tablewriter_tuple_test | |
TEMPLATE template0 | |
OWNER postgres | |
ENCODING 'UTF8' | |
LC_COLLATE 'C' | |
; | |
\c tablewriter_tuple_test |
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 <type_traits> // std::enable_if | |
#include <utility> // std::size_t | |
#include <tuple> // std::tuple_size, std::get | |
#include <vector> | |
using std::to_string; | |
std::string to_string( const char* c ) { return std::string{ c }; } |
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
# Neofetch config file | |
# https://github.com/dylanaraps/neofetch | |
# See this wiki page for more info: | |
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info | |
print_info() { | |
# info title | |
# info underline |