Skip to content

Instantly share code, notes, and snippets.

View nqn's full-sized avatar

Niklas Nielsen nqn

  • San Francisco, CA
View GitHub Profile
#!/bin/bash
#
# Style checker using Google's cpplint
# http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py
#
#
# Build active rules from list:
#
@nqn
nqn / split_stream.cpp
Last active December 24, 2015 15:09
split_stream.cpp
#include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
#include <vector>
struct split_stream_pair {
FILE* original_stream;
FILE* auxiliary_stream;
split_stream_pair(FILE* original_stream, FILE* auxiliary_stream) :
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
int main( int argc, char *argv[] )
#!/bin/bash
ip=`ifconfig eth0|grep -o -e "inet addr:[0-9\.]*"|sed 's/.*://g'`
name=`hostname`
echo $ip $name >> /etc/hosts
GUESS_SUMMARY = True
REVIEWBOARD_URL = "https://reviews.apache.org/"
OPEN_BROWSER = True
TARGET_GROUPS = "mesos"
REPOSITORY = "git://git.apache.org/mesos.git"
{
"failed_tasks": 0,
"finished_tasks": 0,
"invalid_status_updates": 0,
"killed_tasks": 0,
"lost_tasks": 0,
"node": {
"avg_load": [
0.05,
0.36,
{
"attributes": {
},
"build_date": "2013-11-12 16:40:02",
"build_time": 1384303202,
"build_user": "nnielsen",
"completed_frameworks": [
],
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/set.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/set.hpp
index f5caa99..d48a189 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/set.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/set.hpp
@@ -10,28 +10,28 @@ public:
Set(const T& t1)
{
- insert(t1);
+ this->insert(t1);
In file included from ../../../../3rdparty/libprocess/3rdparty/stout/tests/set_tests.cpp:3:0:
../../../../3rdparty/libprocess/3rdparty/stout/include/stout/set.hpp: In instantiation of ‘Set<T>::Set(const T&) [with T = int]’:
../../../../3rdparty/libprocess/3rdparty/stout/tests/set_tests.cpp:7:3: required from here
../../../../3rdparty/libprocess/3rdparty/stout/include/stout/set.hpp:13:14: error: ‘insert’ was not declared in this scope, and no declarations were found by argument-dependent look
up at the point of instantiation [-fpermissive]
insert(t1);
^
../../../../3rdparty/libprocess/3rdparty/stout/include/stout/set.hpp:13:14: note: declarations in dependent base ‘std::set<int, std::less<int>, std::allocator<int> >’ are not found
by unqualified lookup
../../../../3rdparty/libprocess/3rdparty/stout/include/stout/set.hpp:13:14: note: use ‘this->insert’ instead
../../3rdparty/libprocess/include/process/c++11/dispatch.hpp:248:25: error: binding of reference to type 'function<[...]>' to a value of type 'function<[...]>' drops qualifiers
REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
^
../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/preprocessor/repetition/repeat_from_to.hpp:36:125: note: expanded from macro 'BOOST_PP_REPEAT_FROM_TO_1'
# define BOOST_PP_REPEAT_FROM_TO_1(f, l, m, dt) BOOST_PP_REPEAT_FROM_TO_D_1(BOOST_PP_AUTO_REC(BOOST_PP_WHILE_P, 256), f, l, m, dt)
^
../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/preprocessor/repetition/repeat_from_to.hpp:54:136: note: expanded from macro 'BOOST_PP_REPEAT_FROM_TO_D_1'
# define BOOST_PP_REPEAT_FROM_TO_D_1(d, f, l, m, dt) BOOST_PP_REPEAT_1(BOOST_PP_SUB_D(d, l, f), BOOST_PP_REPEAT_FROM_TO_M_1, (d, f, m, dt))