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
package main | |
import ( | |
"bytes" | |
"database/sql" | |
"fmt" | |
"log" | |
"time" | |
"github.com/ClickHouse/clickhouse-go" |
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 <chrono> | |
#include <ctime> | |
using namespace std; | |
int main() { | |
chrono::time_point<chrono::system_clock> timePoint = chrono::system_clock::now(); | |
time_t now = chrono::system_clock::to_time_t(timePoint); | |
cout << ctime(&now) << endl; |
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
#!/usr/bin/env python3 | |
# coding=utf-8 (for Python 2) | |
# return: a list of lists. inner list performs intersection, outer list performs union | |
# for example: [[1,2], [3,4]] means (1 ∩ 2) ∪ (3 ∩ 4) | |
def union(groups, operators): | |
if len(groups) == 1: | |
return [groups] | |
if len(groups) == 2 and len(operators) == 1: | |
if operators[0] == '∪': |