Skip to content

Instantly share code, notes, and snippets.

View lowercase_benchmark.cpp
#include <algorithm>
#include <iostream>
#include <set>
#include <string>
#include <vector>
#include <sys/time.h>
double get_current_time() {
@maksis
maksis / main.c
Last active May 4, 2017
Iconv test app
View main.c
#include <iconv.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
char* convert(const char *from_charset, const char *to_charset, const char *input) {
size_t inleft, outleft, converted = 0;
View RestApiConnector.js
const fetch = require('node-fetch');
const SESSION_IDLE_TIMEOUT = 60; // minutes
// USAGE:
//
// const RestApiConnector = require('./RestApiConnector');
// const api = RestApiConnector({
// username: 'test',