Skip to content

Instantly share code, notes, and snippets.

macro(add_cxxbridge CXXBRIDGE_LIBRARY_NAME CXXBRIDGES_TXT CRATE_NAME)
if (CMAKE_VS_PLATFORM_NAME)
set (build_dir "${CMAKE_VS_PLATFORM_NAME}/$<CONFIG>")
elseif(CMAKE_CONFIGURATION_TYPES)
set (build_dir "$<CONFIG>")
else()
set (build_dir .)
endif()
# cxxbridge
import decimal
import hashlib
import hmac
import json
import time
import urllib
import requests
---
swagger: '2.0'
info:
version: 0.0.0
title: Librevault API
paths:
/globals:
post:
responses:
200:
#include <algorithm>
template<typename _Iterator>
void reverse_wordwise_inplace(_Iterator first, _Iterator second) {
std::reverse(first, second);
_Iterator first_w = first;
_Iterator second_w = first;
do {
second_w = std::find(first_w, second, ' ');
# A simple CMake script for building the application.
cmake_minimum_required(VERSION 2.8)
project(create-x509)
# Our only dependency is OpenSSL
find_package(OpenSSL REQUIRED)
include_directories(${OPENSSL_INCLUDE_DIR})
add_executable(create-x509 create-x509.cpp)