Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"type": "Polygon",
"coordinates": [
[
[100.0, 1.0],
[101.0, 1.0],
[101.0, 0.0],
[100.5, 0.0],
[101.0, 1.0],
[100.0, 0.0],
@sjudeng
sjudeng / elasticgeo_testdata.py
Last active November 27, 2018 12:33
Script to create Elasticsearch index from ElasticGeo test data (gt-elasticsearch/src/test/resources)
#!/usr/bin/python
"""
Script re-creates status_s index for testing.
"""
import os,json,sys,tempfile
os.chdir(os.path.dirname(os.path.realpath(__file__)))
index_name = 'status_s3'
f_active = 'active_mappings.json'
@sjudeng
sjudeng / jg_tp33_cdh512.md
Last active November 6, 2022 12:54
Testing OLAP using JanusGraph with TinkerPop 3.3.0 and Spark 2.2 on Yarn (Cloudera)
@sjudeng
sjudeng / Dockerfile
Last active August 24, 2017 11:08
Dockerfile with CentOS 7 for JanusGraph testing
FROM centos:7
RUN yum -y update && \
yum install -y java-1.8.0-openjdk-devel maven git && \
yum clean all && \
useradd test
WORKDIR /opt/janusgraph
@sjudeng
sjudeng / janusgraph-test.json
Created May 6, 2017 13:45
CloudFormation template with CentOS 7 for JanusGraph testing
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Create an Amazon EC2 instance running the CentOS 7 AMI. Install JanusGraph.",
"Parameters" : {
"KeyName": {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type": "AWS::EC2::KeyPair::KeyName",
"ConstraintDescription" : "must be the name of an existing EC2 KeyPair."