Skip to content

Instantly share code, notes, and snippets.

@jbeezley
jbeezley / mongoInsertTest.py
Created March 10, 2014 15:56
pymongo insert benchmark with healthMap data
import sys
import time
import math
import pymongo
import json
# healthMap data json
fname = 'healthMapDump.json'
#!/bin/bash
# Setup and start Sauce Connect for your TravisCI build
# This script requires your .travis.yml to include the following two private env variables:
# SAUCE_USERNAME
# SAUCE_ACCESS_KEY
# Follow the steps at https://saucelabs.com/opensource/travis to set that up.
#
# Curl and run this script as part of your .travis.yml before_script section:
# before_script:
#!/usr/bin/env python
import os
import shutil
import glob
import sys
import shlex
import sysconfig
import subprocess
@jbeezley
jbeezley / Vagrantfile
Last active August 29, 2015 14:16 — forked from anonymous/Vagrantfile
Vagrant deployment for UVCDAT using osmesa
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "hashicorp/precise64"
@jbeezley
jbeezley / Dockerfile
Last active August 29, 2015 14:16 — forked from anonymous/Dockerfile
Basic UVCDAT installation inside a docker container
FROM ubuntu:14.04
MAINTAINER Jonathan Beezley <jonathan.beezley@kitware.com>
RUN apt-get update && apt-get install -y git gfortran g++ libffi-dev libsqlite-dev libssl-dev libbz2-dev libexpat-dev ncurses-dev curl make wget
RUN curl http://www.cmake.org/files/v3.2/cmake-3.2.0-rc2-Linux-x86_64.tar.gz | tar -v -C /opt -zx
RUN git clone --recursive --branch cdatweb-head https://github.com/UV-CDAT/uvcdat.git /usr/src/uvcdat
RUN mkdir -p /tmp/uvcdat-build || true
set(CTEST_SOURCE_DIRECTORY /usr/src/uvcdat)
set(CTEST_BINARY_DIRECTORY /tmp/uvcdat-build)
set(BASE_IMAGE "$OS{DOCKER_IMAGE_HASH}")
include(${CTEST_SOURCE_DIRECTORY}/CTestConfig.cmake)
set(CTEST_SITE "Docker Ubuntu:14.04")
set(CTEST_BUILD_NAME "image-${DOCKER_IMAGE_HASH}")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
ctest_start("Experimental")
@jbeezley
jbeezley / index.html
Created March 27, 2015 13:11
JS Bin A minimial map with GeoJS // source http://jsbin.com/kutoku
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="A minimial map with GeoJS">
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://opengeoscience.github.io/geojs/js/v0.4.1/geo.ext.min.js"></script>
<script src="https://opengeoscience.github.io/geojs/js/v0.4.1/geo.min.js"></script>
<style id="jsbin-css">
html, body, #map {
@jbeezley
jbeezley / index.html
Created March 27, 2015 14:44
JS Bin GeoJS with different tile sets // source http://jsbin.com/mubuqo
<!DOCTYPE html>
<html>
<head>
<link href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<meta name="description" content="GeoJS with different tile sets">
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://opengeoscience.github.io/geojs/js/v0.4.1/geo.ext.min.js"></script>
<script src="https://opengeoscience.github.io/geojs/js/v0.4.1/geo.min.js"></script>
<style id="jsbin-css">
#!/bin/bash
eval "$(pyenv init -)"
echo "Setup python 2.6..."
pyenv uninstall -f gaia-py26 &> /dev/null
pyenv virtualenv 2.6.9 gaia-py26 &> /dev/null
echo "Setup python 2.7..."
pyenv uninstall -f gaia-py27 &> /dev/null
pyenv virtualenv 2.7.9 gaia-py27 &> /dev/null
#!/bin/bash
eval "$(pyenv init -)"
stat=0
for d in build-gaia* ; do
pushd $d > /dev/null
echo "Testing $d..."
python --version
cmake .. &> configure.log && make &> make.log && ctest -VV -j4 &> test.log