Skip to content

Instantly share code, notes, and snippets.

View foreseeable's full-sized avatar

foreseeable

  • New York University
View GitHub Profile
@foreseeable
foreseeable / test_list.txt
Created August 13, 2020 14:24
list of Envoy test for performance analysis
//test/extensions/filters/http/ratelimit:config_test
//test/extensions/clusters/dynamic_forward_proxy:cluster_test
//test/mocks/grpc:grpc_mocks
//test/extensions/filters/http/jwt_authn:filter_config_test
//test/extensions/filters/http/buffer:buffer_filter_integration_test
//test/integration:idle_timeout_integration_test
//test/extensions/filters/network/thrift_proxy:router_test
//test/common/http:conn_manager_utility_test
//test/common/stream_info:stream_info_impl_test
//test/extensions/filters/http/grpc_json_transcoder:json_transcoder_filter_test
import os
import random
import argparse
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
@foreseeable
foreseeable / qtree4.cpp
Created October 22, 2013 09:06
comes from FOTILE 点分治!
#include<stdio.h>
#include<ctype.h>
#include<string.h>
#include<algorithm>
#include<queue>
using namespace std;
const int inf=~0U>>2;
int getint()
{
int ret=0;bool ok=false,neg=false;
@foreseeable
foreseeable / garden.cpp
Created October 1, 2013 18:15
[CTSC2009]魔幻花园
#include<cstring>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<vector>
const double eps=1e-8;
using namespace std;
struct point{
double x,y;int u;
bool operator <(const point&ths)const{
#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<vector>
#define N 500050
using namespace std;
struct node{
node*go[26],*fa;
int l,num,lcs,nlcs;
@foreseeable
foreseeable / spoj lcs.cpp
Last active December 21, 2015 05:29
后缀自动机求lcs
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
const int N=600000 + 10;
struct SAM{
SAM* go[26],*fa;
int l;
}sam[N],*root,*last;
@foreseeable
foreseeable / poj1509.cpp
Last active December 21, 2015 05:29
最小表示法加后缀自动机
/*
Source Code
Problem: 1509 User: WCMG
Memory: 2968K Time: 829MS
Language: G++ Result: Accepted
Source Code
*/
#include<iostream>
#include<cstdio>