This file contains hidden or 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
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 |
This file contains hidden or 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
import decimal | |
import hashlib | |
import hmac | |
import json | |
import time | |
import urllib | |
import requests | |
This file contains hidden or 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
--- | |
swagger: '2.0' | |
info: | |
version: 0.0.0 | |
title: Librevault API | |
paths: | |
/globals: | |
post: | |
responses: | |
200: |
This file contains hidden or 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 <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, ' '); |
This file contains hidden or 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
# 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) |