Skip to content

Instantly share code, notes, and snippets.

#include "local_feature.hpp"
int main(void) {
LocalFeature local_feature(1.2, 1.3, 1.4);
std::stringstream ss;
boost::archive::text_oarchive oa{ss};
oa << local_feature;
std::string s = ss.str();
for (int i = 0; i < s.size(); i++)
#include <bits/stdc++.h>
using namespace std;
struct Graph {
int n, source, sink;
vector<vector<int>> c;
void Initialize(int _n) {
n = _n;
c = vector<vector<int>>(n, vector<int>(n, 0));
@tmt514
tmt514 / g.cpp
Created September 27, 2018 17:02
#include <bits/stdc++.h>
using namespace std;
struct Graph {
int n, source, sink;
vector<vector<int>> c;
void Initialize(int _n) {
n = _n;
c = vector<vector<int>>(n, vector<int>(n, 0));
@tmt514
tmt514 / g.cpp
Created September 27, 2018 17:00
#include <bits/stdc++.h>
using namespace std;
struct Graph {
int n, source, sink;
vector<vector<int>> c;
void Initialize(int _n) {
n = _n;
c = vector<vector<int>>(n, vector<int>(n, 0));
// by tmt514
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <vector>
#define SZ(x) ((int)(x).size())
// by tmt514
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <vector>
#define SZ(x) ((int)(x).size())
87 19
-143643802 -20 -79
-185148115 -39 -20
-510980509 41 -98
790982811 -100 -80
-984734330 61 62
252570482 -60 22
405268968 42 -58
-943220801 -59 61
26714031 -100 -39
#ifndef ZP_H
#define ZP_H
#include <iostream>
#include <utility>
#include "uberzahl.h"
using namespace std;
/*
# use UTF8
set -g utf8
set-window-option -g utf8 on
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
# set scrollback history to 64k
set -g history-limit 65536
from play import KeyUp, KeyDown, KeyPress
from time import sleep
import numpy as np
import cv2
from mss import mss
from PIL import Image
from Quartz.CoreGraphics import CGEventCreateKeyboardEvent
from Quartz.CoreGraphics import CGEventPost