Skip to content

Instantly share code, notes, and snippets.

View headmyshoulder's full-sized avatar

headmyshoulder

  • Germany, Potsdam
View GitHub Profile
$ ./bin/yarn-session.sh -n 4 -jm 1024 -tm 4096
20:30:55,403 INFO org.apache.hadoop.yarn.client.RMProxy - Connecting to ResourceManager at /0.0.0.0:8032
20:30:55,566 WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
20:30:55,911 WARN org.apache.flink.yarn.FlinkYarnClient - Neither the HADOOP_CONF_DIR nor the YARN_CONF_DIR environment variable is set.The Flink YARN Client needs one of these to be set to properly load the Hadoop configuration for accessing YARN.
20:30:55,911 INFO org.apache.flink.yarn.FlinkYarnClient - Using values:
20:30:55,913 INFO org.apache.flink.yarn.FlinkYarnClient - TaskManager count = 4
20:30:55,913 INFO org.apache.flink.yarn.FlinkYarnClient - JobManager memory = 1024
20:30:55,913 INFO org.apache.flink.yarn.FlinkYarnClient
@headmyshoulder
headmyshoulder / gist:4f11f000cf80e6da59d6
Created August 18, 2014 18:58
Odeint and inheritance
#include <boost/numeric/odeint.hpp>
#include <iostream>
using namespace std;
using namespace boost::numeric::odeint;
using state_type = std::array< double , 2 >;
struct base
{
/*
* chaotic_system.cpp
*
* This example demonstrates how one can use odeint to determine the Lyapunov
* exponents of a chaotic system namely the well known Lorenz system. Furthermore,
* it shows how odeint interacts with boost.range.
*
* Copyright 2011-2012 Karsten Ahnert
* Copyright 2011-2013 Mario Mulansky
*
#include <iostream>
#include <fstream>
#include <complex>
#include <cstdlib>
#include <cmath>
#include <cstdio>
#include <mpfr.h>
#include <gmpxx.h>
#include "mpreal.h"
@headmyshoulder
headmyshoulder / gist:3992253
Created November 1, 2012 07:03
sfinae enabler
/*
* third.cpp
* Date: 2012-11-01
* Author: Karsten Ahnert (karsten.ahnert@gmx.de)
*/
#include <iostream>
#include <boost/utility/enable_if.hpp>
#define tab "\t"
/*
* main.cpp
* Date: 2012-10-31
* Author: Karsten Ahnert (karsten.ahnert@gmx.de)
*/
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <iterator>