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
enum TimeZone { LOCAL, GMT }; | |
// https://stackoverflow.com/a/58037981/21913386 | |
// Algorithm: http://howardhinnant.github.io/date_algorithms.html | |
int daysFromEpoch(int y, int m, int d) { | |
y -= m <= 2; | |
int era = y / 400; | |
int yoe = y - era * 400; // [0, 399] | |
int doy = (153 * (m + (m > 2 ? -3 : 9)) + 2) / 5 + d - 1; // [0, 365] | |
int doe = yoe * 365 + yoe / 4 - yoe / 100 + doy; // [0, 146096] |
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
use std::sync::{Arc, atomic::{AtomicPtr, Ordering}}; | |
use std::ptr; | |
struct Node<T> { | |
data: T, | |
next: AtomicPtr<Node<T>>, | |
} | |
pub struct LockFreeLinkedList<T> { | |
head: AtomicPtr<Node<T>>, |
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
.POSIX: | |
.SUFFIXES: | |
.PHONY: all clean | |
OBJ = obj | |
BIN = bin | |
COMMON_CFLAGS = -O2 -DUSE_PTHREADS -std=c99 -D_POSIX_SOURCE \ | |
-D_POSIX_C_SOURCE=200809L -fPIC -I../include | |
COMMON_LDFLAGS = -pthread | |
LIB_NAME = DXFeed |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 <boost/variant.hpp> | |
#include <boost/variant2.hpp> | |
#include <iostream> | |
#include <memory> | |
#include <mutex> | |
#include <type_traits> | |
#include <variant> | |
struct Error {}; |
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
sudo apt-get install xrdp | |
sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak | |
sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini | |
sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini | |
sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini |
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
bc1q779qrrmy22aqtvc00khnmefjuycprg292smpac.ttldtor5 |
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
attaaaggtt tataccttcc caggtaacaa accaaccaac tttcgatctc ttgtagatct | |
gttctctaaa cgaactttaa aatctgtgtg gctgtcactc ggctgcatgc ttagtgcact | |
cacgcagtat aattaataac taattactgt cgttgacagg acacgagtaa ctcgtctatc | |
ttctgcaggc tgcttacggt ttcgtccgtg ttgcagccga tcatcagcac atctaggttt | |
cgtccgggtg tgaccgaaag gtaagatgga gagccttgtc cctggtttca acgagaaaac | |
acacgtccaa ctcagtttgc ctgttttaca ggttcgcgac gtgctcgtac gtggctttgg | |
agactccgtg gaggaggtct tatcagaggc acgtcaacat cttaaagatg gcacttgtgg | |
cttagtagaa gttgaaaaag gcgttttgcc tcaacttgaa cagccctatg tgttcatcaa | |
acgttcggat gctcgaactg cacctcatgg tcatgttatg gttgagctgg tagcagaact | |
cgaaggcatt cagtacggtc gtagtggtga gacacttggt gtccttgtcc ctcatgtggg |
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 <functional> | |
#include <iostream> | |
template<typename...Ts> | |
struct TypeList { | |
}; | |
template<typename T, typename...Ts> | |
using Tail = TypeList<Ts...>; |
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
─────────────────────────────────────────────────────────────────────────────── | |
Language Files Lines Blanks Comments Code Complexity | |
─────────────────────────────────────────────────────────────────────────────── | |
HTML 77503 3947627 347061 79446 3521120 0 | |
C++ 47098 13390846 1958087 1268285 10164474 836375 | |
C Header 40971 4706649 829834 1052151 2824664 51731 | |
Plain Text 27851 1366844 67900 0 1298944 0 | |
JavaScript 20533 3671275 395104 792077 2484094 215432 | |
Java 7902 1510116 202513 262612 1044991 93342 | |
Python 4434 835474 57556 75842 702076 39091 |
NewerOlder