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/env python3 | |
import itertools | |
import requests | |
import time | |
CWOI_HOST = 'https://local.cwoi.com.cn:8443' | |
CWOI_TOKEN = '' | |
CRAWL_INTERVAL = 0.5 |
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
// long double | |
#define NDEBUG | |
#include <algorithm> | |
#include <iostream> | |
#include <cassert> | |
#include <cctype> | |
#include <cmath> | |
#include <cstdio> |
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
so $VIMRUNTIME/vimrc_example.vim | |
set autoindent | |
set smartindent | |
set autochdir | |
set timeoutlen=200 | |
set number | |
set relativenumber | |
set laststatus=2 |
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/sh | |
print_usage_and_exit() | |
{ | |
echo "Usage: $0 [-t <second>] <program>" | |
exit 1 | |
} | |
time_limit=1 |
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 <stdio.h> | |
#define REPEAT0(x) x | |
#define REPEAT1(x) REPEAT0(x), REPEAT0(x) | |
#define REPEAT2(x) REPEAT1(x), REPEAT1(x) | |
#define REPEAT3(x) REPEAT2(x), REPEAT2(x) | |
#define REPEAT4(x) REPEAT3(x), REPEAT3(x) | |
#define REPEAT5(x) REPEAT4(x), REPEAT4(x) | |
#define REPEAT6(x) REPEAT5(x), REPEAT5(x) | |
#define REPEAT7(x) REPEAT6(x), REPEAT6(x) |
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
BasedOnStyle: LLVM | |
UseTab: Always | |
IndentWidth: 8 | |
TabWidth: 8 | |
BreakBeforeBraces: Mozilla | |
DerivePointerAlignment: false | |
PointerAlignment: Right | |
ColumnLimit: 80 | |
AllowShortBlocksOnASingleLine: true | |
AllowShortCaseLabelsOnASingleLine: true |