- Power
- Technique
- Coordination
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
// Christian Henning's original: http://pastebin.com/Qk3ssZc8 | |
namespace boost { namespace gil { | |
template< typename Reader | |
, typename View | |
> | |
class image_read_iterator | |
{ | |
public: |
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
#ifdef _MSC_VER | |
#include <boost/config/compiler/visualc.hpp> | |
#endif | |
#include <boost/property_tree/ptree.hpp> | |
#include <boost/property_tree/json_parser.hpp> | |
#include <boost/foreach.hpp> | |
#include <cassert> | |
#include <exception> | |
#include <iostream> | |
#include <sstream> |
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 <string> | |
#include <utility> | |
#include <boost/noncopyable.hpp> | |
struct animal : private boost::noncopyable | |
{ | |
animal() {} | |
animal(char const* name) : name(name) {} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.SqlServer.Types; | |
namespace csharp | |
{ | |
class Program |
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
// Version fixed by VeXocide | |
// Test case based on solution discussed here: | |
// http://thread.gmane.org/gmane.comp.parsers.spirit.general/24684/focus=24688 | |
#include <boost/config/warning_disable.hpp> | |
#include <boost/spirit/include/qi.hpp> | |
#include <boost/fusion/include/vector.hpp> | |
namespace qi = boost::spirit::qi; |
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
// Interesting issue about conversion operators in C++ | |
//http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1592.pdf | |
#include <iostream> | |
template <class T> | |
class Ptr | |
{ | |
// stuff | |
public: |
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
/* For NAN */ | |
#ifdef __GNUC__ | |
#define _GNU_SOURCE | |
#endif | |
#include <math.h> |
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
////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// Problem reported to Boost mailing list: http://thread.gmane.org/gmane.comp.lib.boost.devel/234991 | |
// | |
// How to use Boost.GIL views attached to bytes array with interleaved_ptr, | |
// versus view constructed with cast to pixel type | |
////////////////////////////////////////////////////////////////////////////////////////////////////// | |
std::size_t w = 512; | |
std::size_t h = 256; | |
std::size_t sizeRow = 1536; // calculated for Windows DIB | |
std::size_t sizeImage = sizeRow * h; |
- Source: http://cheat.errtheblog.com/s/tmux
- Version: 7 (udpated by mloskot)
$ tmux # start tmux server
$ tmux at # attach running sessions to a terminal
$ tmux ls # list running tmux sessions
OlderNewer