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 | |
import os | |
import time | |
def main(): | |
rootDir = '/home/phil/workspace/clang-dump-names' | |
for dirName, subDirList, fileList in os.walk(rootDir): | |
depth = dirName.count(os.sep) - rootDir.count(os.sep) | |
indentation = '\t' * depth |
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
#define BOOST_PP_VARIADICS 1 | |
#include <boost/mpl/vector.hpp> | |
#include <iostream> | |
#include <memory> | |
#include <typeinfo> | |
#include <boost/preprocessor.hpp> | |
#define GETCLASS(elem) BOOST_PP_SEQ_HEAD(elem) |
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 <unistd.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <sys/epoll.h> | |
struct Redirecter { | |
int writeFd, readFd; |
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 | |
import sys | |
import os | |
ycmpath = os.path.expanduser("~/.vim/bundle/YouCompleteMe") | |
def main(): | |
sys.path.insert(0, os.path.join(ycmpath, 'third_party/ycmd')) |
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 <iterator> | |
#include <chrono> | |
#include <random> | |
#include <cstring> | |
#include <algorithm> | |
#include <iostream> | |
#include <type_traits> | |
namespace ph { |
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
void foo(T t) { | |
foo_impl1(t); | |
} | |
void foo_impl1(T u) { | |
foo_impl2(u); | |
} | |
void foo_impl2(T w) { | |
std::cout<<w<<std::endl; |
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/python | |
import os | |
import xml.etree.ElementTree as ET | |
tree = ET.parse('smileys.xml') | |
root = tree.getroot() | |
smileys = [] |
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
{ | |
"sdfVersion": 2, | |
"name": "interpolated-1", | |
"width": 1280, | |
"height": 720, | |
"exposure": 1.0, | |
"postprocess": 1, | |
"renderTime": 3904879, | |
"spp": 3950, | |
"sppTarget": 5001, |
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
template<typename T> | |
struct ThreadWrapper { | |
/* ... */ | |
}; | |
template<typename T, typename Ts...> | |
class PipelineFunctions { | |
public: | |
PipelineFunctions() { |
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 <mutex> | |
#include <vector> | |
class Bar { }; | |
class Foo1 { | |
std::mutex _mutex; | |
std::vector<Bar> _data; |
NewerOlder