This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: java | |
env: | |
global: | |
- SONATYPE_USERNAME=yourusername | |
- secure: "your encrypted SONATYPE_PASSWORD=pass" | |
after_success: | |
- python addServer.py | |
- mvn clean deploy --settings ~/.m2/mySettings.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.neothemachine.flextable.client; | |
import com.github.neothemachine.flextable.client.ModelFlexTable.FlexColumn; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.event.dom.client.ClickEvent; | |
import com.google.gwt.event.dom.client.ClickHandler; | |
import com.google.gwt.uibinder.client.UiBinder; | |
import com.google.gwt.uibinder.client.UiField; | |
import com.google.gwt.user.client.ui.Button; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import collections | |
import numpy as np | |
import matplotlib | |
import matplotlib.pyplot as plt | |
from scipy.spatial import Delaunay, KDTree | |
# an adaptation of https://stackoverflow.com/a/15783581/60982 | |
# using ideas from https://stackoverflow.com/a/9471601/60982 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import numpy.ma as ma | |
# this is an implementation of: | |
# http://gis.stackexchange.com/questions/17788/how-to-compute-the-bounding-box-of-multiple-layers-in-lat-long/17987#17987 | |
def minimumBoundingBox(lons): | |
xs = np.sort(lons.ravel()) | |
xs = np.concatenate((xs,[xs[0]+360])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import urllib2 | |
import re | |
# To NSSDC: Please provide a REST API. Thanks. | |
class Discipline: | |
''' | |
as in http://nssdc.gsfc.nasa.gov/nmc/SpacecraftQuery.jsp form | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import numpy as np | |
from scipy.ndimage.filters import correlate1d | |
def masked_adaptive_threshold(image,mask,max_value,size,C): | |
''' | |
image must already be masked (unmasked areas=0) | |
mask is a boolean array | |
see http://stackoverflow.com/a/10015315/60982 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sqlalchemy import create_engine, event, orm | |
from sqlalchemy.orm import sessionmaker | |
from sqlalchemy.orm.session import Session as SessionBase, object_session | |
from sqlalchemy.event.api import listen | |
# The following adds delete, insert, and update events after successful commits. | |
# SQLAlchemy provides only events after flushes, but not after commits. | |
# The classes are adapted from Flask-SQLAlchemy. | |
# see also https://stackoverflow.com/a/12026787/60982 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
This module contains a fast replacement for numpy's histogramdd and histogram2d. | |
Two changes were made. The first was replacing | |
np.digitize(a, b) | |
with | |
np.searchsorted(b, a, "right") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.image as mpimg | |
import matplotlib.pyplot as plt | |
def loadFigImage(path): | |
im = mpimg.imread(path) | |
h,w = im.shape[0], im.shape[1] | |
dpi = 80 | |
fig = plt.figure(figsize=(w/dpi, h/dpi), dpi=dpi) | |
ax = plt.Axes(fig, [0, 0, 1, 1]) | |
ax.set_xlim(0, w) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<colorTheme id="37093" name="Obsidian Java" modified="" author="Maik"> | |
<searchResultIndication color="#616161" /> | |
<filteredSearchResultIndication color="#616161" /> | |
<occurrenceIndication color="#616161" /> | |
<writeOccurrenceIndication color="#616161" /> | |
<findScope color="#E0E2E4" /> | |
<deletionIndication color="#E0E2E4" /> | |
<sourceHoverBackground color="#FFFFFF" /> | |
<singleLineComment color="#7D8C93" /> |
OlderNewer