Skip to content

Instantly share code, notes, and snippets.

Avatar

SF-Zhou

View GitHub Profile
@SF-Zhou
SF-Zhou / multi-threading.cpp
Created Dec 22, 2018
C++11 Producer + Consumer
View multi-threading.cpp
#include <chrono>
#include <iostream>
#include <mutex>
#include <queue>
#include <thread>
#include <vector>
std::mutex mutex;
std::queue<int> candidates;
std::condition_variable condition;
@SF-Zhou
SF-Zhou / c.vimrc
Last active Nov 14, 2018
cVim Config
View c.vimrc
set noautofocus
let barposition = "bottom"
set smoothscroll
let scrollstep = 320
let scrollduration = 200
let blacklists = [
"https://*.overleaf.com/*"
]
@SF-Zhou
SF-Zhou / HashTable.hpp
Created Jul 25, 2018
Hash Table, Clear Easily (C++ 11)
View HashTable.hpp
// Copyright [2018] <Copyright SF-Zhou>
// Author: SF-Zhou
// Email: sfzhou.scut@gmail.com
#ifndef HASHTABLE_HPP_
#define HASHTABLE_HPP_
#include <cstring>
namespace Utils {
View 2017.netease.brick.cpp
#include <iostream>
#include <string>
#include <cstdio>
#include <cstring>
#include <vector>
#include <queue>
#include <cmath>
#include <map>
#include <set>
#include <algorithm>
View 2017.netease.expression.cpp
#include <iostream>
#include <string>
#include <cstdio>
#include <cstring>
#include <vector>
#include <queue>
#include <cmath>
#include <map>
#include <unordered_map>
#include <unordered_set>
View 2017.netease.set.cpp
#include <iostream>
#include <string>
#include <cstdio>
#include <cstring>
#include <vector>
#include <queue>
#include <cmath>
#include <map>
#include <unordered_map>
#include <unordered_set>
View 2017.netease.distribute.work.cpp
#include <iostream>
#include <string>
#include <cstdio>
#include <cstring>
#include <vector>
#include <queue>
#include <cmath>
#include <map>
#include <unordered_map>
using namespace std;
@SF-Zhou
SF-Zhou / 2017.netease.clear.redundancy.cpp
Created Mar 26, 2017
2017 Netease Clear Redundancy
View 2017.netease.clear.redundancy.cpp
#include <iostream>
#include <string>
#include <cstdio>
#include <cstring>
#include <vector>
#include <queue>
#include <cmath>
#include <map>
#include <unordered_map>
using namespace std;
View 2017.netease.to.company.cpp
#include <iostream>
#include <string>
#include <cstdio>
#include <cstring>
#include <vector>
#include <queue>
#include <cmath>
#include <unordered_map>
using namespace std;
View 2017.netease.dual.core.cpp
#include <iostream>
#include <string>
#include <cstdio>
#include <cstring>
#include <vector>
#include <queue>
#include <cmath>
#include <unordered_map>
using namespace std;
You can’t perform that action at this time.