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 <iostream> | |
#include <vector> | |
#include <cstdlib> | |
struct test { | |
}; | |
struct test_virt : public test { | |
virtual void foo(){} | |
}; |
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 <iostream> | |
#include <vector> | |
#include <cstdlib> | |
struct test { | |
}; | |
struct test_virt : public test { | |
virtual void foo(){} | |
}; |
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 <iostream> | |
#include <stack> | |
#include <cassert> | |
template <std::size_t... I> | |
class index_sequence {}; | |
template <std::size_t N, std::size_t ...I> | |
struct make_index_sequence : make_index_sequence<N-1, N-1,I...> {}; |
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
// | |
// khash.h | |
// | |
// Created by Paul Perekhozhikh on 16.10.13. | |
// Copyright (c) 2013 Paul. All rights reserved. | |
// | |
#ifndef khash_h | |
#define khash_h |
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 <iostream> | |
#include <stack> | |
#include <cassert> | |
struct BaseValue { | |
virtual ~BaseValue() {} | |
}; | |
template<typename T> | |
struct Value : public BaseValue{ |
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
VBoxManage modifyvm "<docker vm name>" --natpf1 "tcp-port8080,tcp,,8080,,8080"; | |
VBoxManage modifyvm "<docker vm name>" --natpf1 "udp-port8080,udp,,8080,,8080"; | |
VBoxManage modifyvm "<docker vm name>" --natpf1 "tcp-port9933,tcp,,9933,,9933"; | |
VBoxManage modifyvm "<docker vm name>" --natpf1 "udp-port9933,udp,,9933,,9933"; |
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 <functional> | |
#include <iostream> | |
void test() { | |
} | |
void test2() { | |
} |
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 <functional> | |
#include <iostream> | |
void test() { | |
} | |
void test2() { | |
} |
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
#!/bin/sh | |
# Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh | |
set -e | |
# Must be a valid filename | |
NAME=nginx | |
PIDFILE=./obj/$NAME.pid | |
#This is the command to be run, give the full pathname | |
DAEMON=./obj/nginx |
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
error_page 400 403 404 405 =200 @40*_xml; | |
location @40*_xml { | |
default_type application/xml; | |
return 200 '<country technical_work=\'{"notify_start":1501834800,"work_start":1501835400,"work_end":1501836300}\' server_time=\'1501835409\'> | |
<field></field> | |
<messages> | |
<message code=\'technical_works\' /> | |
</messages> | |
</country>'; | |
} |
OlderNewer