Skip to content

Instantly share code, notes, and snippets.

View osvimer's full-sized avatar

Junjie Huang osvimer

View GitHub Profile
@osvimer
osvimer / # pkg-config - 2023-03-20_19-32-16.txt
Created March 20, 2023 11:37
pkg-config on Ubuntu 18.04.6 LTS - Homebrew build logs
Homebrew build logs for pkg-config on Ubuntu 18.04.6 LTS
Build date: 2023-03-20 19:32:16
#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) {
#!/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 = []
"==============================================================================
"---------------------------- Global Setting ------------------------------
"==============================================================================
" 定义快捷键的前缀,即<Leader>
let mapleader = ","
"==============================================================================
"----------------------------- Key Bindings -------------------------------
"==============================================================================
" 定义快捷键关闭当前分割窗口
"==============================================================================
"---------------------------- Global Setting ------------------------------
"==============================================================================
" 定义快捷键的前缀,即<Leader>
let mapleader = ","
"==============================================================================
"----------------------------- Key Bindings -------------------------------
"==============================================================================
" 定义快捷键关闭当前分割窗口
#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];
#include <cstdlib>
#include <unistd.h>
#include <iostream>
#include <mutex>
#include <thread>
#include <queue>
#include <condition_variable>
std::mutex m;
std::condition_variable cv1; //write
"==============================================================================
"---------------------------- Global Setting ------------------------------
"==============================================================================
" 定义快捷键的前缀,即<Leader>
let mapleader = ","
"==============================================================================
"----------------------------- Key Bindings -------------------------------
"==============================================================================
" 定义快捷键关闭当前分割窗口
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <ctime>
struct LinkedNode {
int data;
LinkedNode* next;
LinkedNode(int val): data(val), next(NULL) {}
#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 << ", ";