Skip to content

Instantly share code, notes, and snippets.

View aceimnorstuvwxz's full-sized avatar
🌴
On vacation

chen2050 aceimnorstuvwxz

🌴
On vacation
View GitHub Profile
@aceimnorstuvwxz
aceimnorstuvwxz / C++ Predict with caffe
Created December 13, 2016 06:52 — forked from onauparc/C++ Predict with caffe
sample code for caffe C++ prediction
#include <cuda_runtime.h>
#include <cstring>
#include <cstdlib>
#include <vector>
#include <string>
#include <iostream>
#include <stdio.h>
#include "caffe/caffe.hpp"

OpenSSL Base64 Encoding: Binary Safe and Portable

Herewith is an example of encoding to and from base64 using OpenSSL's C library. Code presented here is both binary safe, and portable (i.e. it should work on any Posix compliant system e.g. FreeBSD and Linux).

License

The MIT License (MIT)

Copyright (c) 2013 Barry Steyn