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
""" | |
Useful functions for loading the latest version | |
of a typelib given just its IID. | |
- James Brotchie <brotchie@gmail.com> (github.com/brotchie) | |
""" | |
from win32com.client import gencache | |
from _winreg import OpenKey, HKEY_CLASSES_ROOT, QueryInfoKey, EnumKey |
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
/* | |
* Minimal C++ implementation of Functor, Monad and Maybe. | |
* | |
* Requires c++0x variadic templates and lambda expressions: | |
* | |
* g++ -std=c++0x main.cpp -o main | |
* | |
* fmap, monadic bind and return implementations for std::vector | |
* and Maybe. | |
* |
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
// Work around for dispatch_release deprecation in | |
// iOS 6.0. | |
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 60000 | |
#undef dispatch_release | |
#define dispatch_release(X) (X) | |
#undef dispatch_retain | |
#define dispatch_retain(X) (X) | |
#endif |
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 python | |
""" | |
Generates random articles containing loremipsum to | |
test Pelican site generation. | |
Requires the loremipsum Python module: | |
pip install loremipsum | |