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
Homebrew build logs for pkg-config on Ubuntu 18.04.6 LTS | |
Build date: 2023-03-20 19:32:16 |
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 <vector> | |
using namespace std; | |
class union_find { | |
public: | |
union_find(int n) : cap_(n), count_(n) { | |
parent_.resize(n); | |
for (int i = 0; i < n; ++i) { |
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 python | |
# vim:fileencoding=utf-8 | |
# you may want change this | |
dest_url = 'https://img.vim-cn.com/' | |
import sys | |
from subprocess import Popen, PIPE | |
args = [] |
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
"============================================================================== | |
"---------------------------- Global Setting ------------------------------ | |
"============================================================================== | |
" 定义快捷键的前缀,即<Leader> | |
let mapleader = "," | |
"============================================================================== | |
"----------------------------- Key Bindings ------------------------------- | |
"============================================================================== | |
" 定义快捷键关闭当前分割窗口 |
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
"============================================================================== | |
"---------------------------- Global Setting ------------------------------ | |
"============================================================================== | |
" 定义快捷键的前缀,即<Leader> | |
let mapleader = "," | |
"============================================================================== | |
"----------------------------- Key Bindings ------------------------------- | |
"============================================================================== | |
" 定义快捷键关闭当前分割窗口 |
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 <stdio.h> | |
#include <iostream> | |
#include <string> | |
#include <typeinfo> | |
#define Print(x) \ | |
std::cout << "\x1B[36m" #x "\x1B[33m := \x1B[32m" << x << "\x1B[0m" \ | |
<< std::endl | |
typedef const char (char_array_10_t) [10]; |
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 <cstdlib> | |
#include <unistd.h> | |
#include <iostream> | |
#include <mutex> | |
#include <thread> | |
#include <queue> | |
#include <condition_variable> | |
std::mutex m; | |
std::condition_variable cv1; //write |
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
"============================================================================== | |
"---------------------------- Global Setting ------------------------------ | |
"============================================================================== | |
" 定义快捷键的前缀,即<Leader> | |
let mapleader = "," | |
"============================================================================== | |
"----------------------------- Key Bindings ------------------------------- | |
"============================================================================== | |
" 定义快捷键关闭当前分割窗口 |
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 <algorithm> | |
#include <vector> | |
#include <map> | |
#include <ctime> | |
struct LinkedNode { | |
int data; | |
LinkedNode* next; | |
LinkedNode(int val): data(val), next(NULL) {} |
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 <vector> | |
void PrintArray(std::vector<int>& arr) { | |
int len = arr.size(); | |
std::cout << "["; | |
for (int i = 0; i < len; ++i) { | |
std::cout << arr[i]; | |
if (i != len - 1) { | |
std::cout << ", "; |
NewerOlder