Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <string>
#include <vector>
class A
{
private:
virtual void m1() = 0;
virtual void m2() { std::cout << "A base" << std::endl; }
};
#include <iostream>
#include <functional>
#include <memory>
#include <type_traits>
class DBIFace
{
public:
DBIFace() = default;
#include <iostream>
#include <functional>
#include <memory>
#include <type_traits>
class DBIFace
{
public:
DBIFace() = default;
#!/bin/bash
sudo mount -t cifs -o domain=DOMAIN,username=DomainUser,noperm,file_mode=0660,dir_mode=0755,vers=2.1 //fileshare.domain.ru/public /media/public -v
<xsl:template match="population">
<xsl:value-of select="."/>
<xsl:text> </xsl:text>
<xsl:value-of select="@units"/>
</xsl:template>
try
{
bool stop_signal = false;
int flags;
WebSocket wsock(request, response);
wsock.setReceiveTimeout(Poco::Timespan(10, 0, 0, 0, 0));
std::ostringstream ss;
do
{
function WebSocketTest()
{
if ("WebSocket" in window)
{
var ws = new WebSocket("ws://localhost:9990/ws?param=valu&another_param=another_value");
ws.onmessage = function(evt)
{
var msg = evt.data;
var div = document.createElement('div');
std::ofstream ofs("C:\\Users\\me\\Code\\out.txt", std::ios_base::app);
for (auto& i : float_vec)
{
if (abs(i) < 1e-10)
ofs << "N ";
else
ofs << i << " ";
}
static const bool pod_flag = std::is_same<longint, T>::value;
typedef SuitableBarFoo<pod_flag, true> foo_type;
typedef typename foo_type::template Type<PROJBar, T> SpecFoo;
FooVector< SpecFoo > foo_vec;
#!/usr/bin/python
from websocket import create_connection
ws = create_connection("ws://localhost:9990/ws?param=value")