This file contains 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 <string> | |
#include <vector> | |
class A | |
{ | |
private: | |
virtual void m1() = 0; | |
virtual void m2() { std::cout << "A base" << std::endl; } | |
}; |
This file contains 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 <functional> | |
#include <memory> | |
#include <type_traits> | |
class DBIFace | |
{ | |
public: | |
DBIFace() = default; |
This file contains 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 <functional> | |
#include <memory> | |
#include <type_traits> | |
class DBIFace | |
{ | |
public: | |
DBIFace() = default; |
This file contains 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/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 |
This file contains 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
<xsl:template match="population"> | |
<xsl:value-of select="."/> | |
<xsl:text> </xsl:text> | |
<xsl:value-of select="@units"/> | |
</xsl:template> |
This file contains 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
try | |
{ | |
bool stop_signal = false; | |
int flags; | |
WebSocket wsock(request, response); | |
wsock.setReceiveTimeout(Poco::Timespan(10, 0, 0, 0, 0)); | |
std::ostringstream ss; | |
do | |
{ |
This file contains 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
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'); |
This file contains 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
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 << " "; | |
} |
This file contains 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
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; |
This file contains 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
#!/usr/bin/python | |
from websocket import create_connection | |
ws = create_connection("ws://localhost:9990/ws?param=value") |
NewerOlder