Skip to content

Instantly share code, notes, and snippets.

#include<map>
#include<iostream>
#include<fstream>
#include<boost/algorithm/string.hpp>
#include<boost/filesystem.hpp>
#include "aws/core/Aws.h"
#include "aws/s3/S3Client.h"
#include "aws/s3/model/ListObjectsV2Request.h"
#include <iostream>
#include <sstream>
#include "rocksdb/db.h"
#include "rocksdb/utilities/backupable_db.h"
class Rocks{
rocksdb::DB *db;
rocksdb::Options opts;
rocksdb::WriteOptions wOpts;
@rbs392
rbs392 / cpp
Created November 15, 2017 19:11
FROM ubuntu:16.04
WORKDIR /apps
RUN apt-get update && \
apt-get -y install openssl clang g++ python-dev make cmake git ncurses-dev wget
RUN wget https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.gz -P /tmp && \
cd /tmp && tar xf boost_1_65_1.tar.gz && \
cd boost_1_65_1 && ./bootstrap.sh && ./b2 install
@rbs392
rbs392 / node-command-line-options.txt
Created September 26, 2017 08:39 — forked from listochkin/node-command-line-options.txt
Node V8 GC-related options
--log_gc (Log heap samples on garbage collection for the hp2ps tool.)
type: bool default: false
--expose_gc (expose gc extension)
type: bool default: false
--max_new_space_size (max size of the new generation (in kBytes))
type: int default: 0
--max_old_space_size (max size of the old generation (in Mbytes))
type: int default: 0
--max_executable_size (max size of executable memory (in Mbytes))
type: int default: 0
import java.io.{ByteArrayInputStream, InputStream}
import java.net.URL
import java.nio.charset.StandardCharsets
import javax.activation.MimeType
import com.sun.xml.internal.ws.wsdl.parser.MIMEConstants
import org.fit.cssbox.css.{CSSNorm, DOMAnalyzer}
import org.fit.cssbox.demo.BoxBrowser
import org.fit.cssbox.io.{DefaultDOMSource, DefaultDocumentSource, DocumentSource, StreamDocumentSource}
import org.fit.cssbox.layout.{Box, BrowserCanvas, BrowserConfig, ElementBox}
@rbs392
rbs392 / gist:be8f5ec7e071f14191f9aab40f46a118
Created November 23, 2016 15:20 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview