Skip to content

Instantly share code, notes, and snippets.

@rvernica
rvernica / run.py
Last active June 29, 2016 04:58
SciDB 15.12
#!/usr/bin/python
# Initialize, start and stop scidb in a cluster.
# BEGIN_COPYRIGHT
#
# Copyright (C) 2008-2015 SciDB, Inc.
# All Rights Reserved.
#
# SciDB is free software: you can redistribute it and/or modify
ifeq ($(SCIDB),)
X := $(shell which scidb 2>/dev/null)
ifneq ($(X),)
X := $(shell dirname ${X})
SCIDB := $(shell dirname ${X})
endif
endif
# A way to set the 3rdparty prefix path that is convenient
# for SciDB developers.
@rvernica
rvernica / Makefile
Last active March 29, 2016 21:33
pen_max/Makefile from User-Defined Aggregate example http://forum.paradigm4.com/t/example-uda-penmax/343
# BEGIN_COPYRIGHT
#
# This file is part of SciDB.
# Copyright (C) 2008-2013 SciDB, Inc.
#
# SciDB is free software: you can redistribute it and/or modify
# it under the terms of the AFFERO GNU General Public License as published by
# the Free Software Foundation.
#
# SciDB is distributed "AS-IS" AND WITHOUT ANY WARRANTY OF ANY KIND,
#
# This file is an 'iquery -a' script designed to show how the rational
# data type can be used.
#
# [1] Load the library with the rational number implementation:
load_library ( 'rational' );
#
# Check that the new library's type (at least) has been loaded.
sort ( filter ( list ('types'), name='rational'), 1 );
#
/*
* Copyright (c) 2013 Red Hat.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY