Skip to content

Instantly share code, notes, and snippets.

View Kontinuation's full-sized avatar

Kristin Cowalcijk Kontinuation

View GitHub Profile
@Kontinuation
Kontinuation / sedona-on-spark-3.1.2-standalone.log
Created September 18, 2021 03:56
Spatial join fails after merging commit a0ed49 ([SEDONA-28] shape&wkb ser de)
21/09/18 11:51:31 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
21/09/18 11:51:31 INFO SparkContext: Running Spark version 3.1.2
21/09/18 11:51:31 INFO ResourceUtils: ==============================================================
21/09/18 11:51:31 INFO ResourceUtils: No custom resources configured for spark.driver.
21/09/18 11:51:31 INFO ResourceUtils: ==============================================================
21/09/18 11:51:31 INFO SparkContext: Submitted application: SedonaSQL-demo
21/09/18 11:51:31 INFO ResourceProfile: Default ResourceProfile created, executor resources: Map(cores -> name: cores, amount: 1, script: , vendor: , memory -> name: memory, amount: 1024, script: , vendor: , offHeap -> name: offHeap, amount: 0, script: , vendor: ), task resources: Map(cpus -> name: cpus, amount: 1.0)
21/09/18 11:51:31 INFO ResourceProfile: Limiting reso
@Kontinuation
Kontinuation / ski.cc
Last active August 29, 2015 13:56
SKI combinators generated by MetaLang
#include <iostream>
#include "metalang.hpp"
struct I {
template <typename x, typename _0>
struct apply {
typedef x value;
};
};
@Kontinuation
Kontinuation / schemelike.cc
Created October 9, 2013 13:44
Some scheme-like routines in C++
#include <iostream>
#include <functional>
using namespace std;
template<typename _CAR,typename _CDR>
pair<_CAR,_CDR> cons(_CAR car,_CDR cdr)
{
return std::make_pair(car,cdr);
@Kontinuation
Kontinuation / extend.cc
Created September 27, 2013 17:51
Extends the number of arguments, can be regarded as an inverse transformation of currying
#include <iostream>
#include <functional>
using namespace std;
template <typename ... _> struct extend;
template <typename t_ret, typename ... t_args, typename ... t_arge>
struct extend <t_ret(t_args ...) , t_arge ...> {
static std::function<t_ret(t_args ..., t_arge ...)> impl (std::function<t_ret(t_args ...)> f) {