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
# An implementation of http://docs.python.org/2/library/string.html#format-specification-mini-language | |
# WARNING: Not complete. | |
applyFormat = (value, formatSpec) -> | |
pattern = /// | |
([^{}](?=[<>=^]))?([<>]^)? # fill & align | |
([\+\-\x20])? # sign | |
(\#)? # integer base specifier | |
(0)? # zero-padding | |
(\d+)? # width |
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
# Create a deep copy of an object. - Based on https://github.com/documentcloud/underscore/pull/595 | |
deepClone = (obj) -> | |
if !_.isObject obj or _.isFunction obj then return obj | |
if _.isDate obj then return new Date do obj.getTime | |
if _.isRegExp obj then return new RegExp obj.source, obj.toString().replace(/.*\//, "") | |
isArr = _.isArray obj or _.isArguments obj | |
func = (memo, value, key) -> | |
if isArr then memo.push deepClone value |
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 datetime import date | |
def phase(m, d, y): | |
ref_date = date(2012, 1, 23) | |
our_date = date( y, m, d ) | |
date_delta = our_date - ref_date | |
days = date_delta.days | |
phase_length = 29.53 | |
return days % phase_length / phase_length |
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
services: | |
demo: | |
#kml: | |
tms: | |
# needs no arguments | |
wms: | |
# srs: ['EPSG:4326', 'EPSG:900913'] | |
image_formats: ['image/jpeg', 'image/png'] | |
md: | |
# metadata used in capabilities documents |
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
*swp |
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
moon/apollo/audio/a11/plaque.mp3 | |
moon/apollo/audio/a15/a15a1065723.mp3 | |
moon/apollo/image_archive/Apollo/a11/A11_MP.SampleDoc2FS.gif | |
moon/apollo/image_archive/Apollo/a11/A11_MP.SampleDoc2FS.jpg | |
moon/apollo/image_archive/Apollo/a11/AS11-40-5850HR.jpg | |
moon/apollo/image_archive/Apollo/a11/AS11-40-5875HR.jpg | |
moon/apollo/image_archive/Apollo/a11/AS11-40-5877HR.jpg | |
moon/apollo/image_archive/Apollo/a11/AS11-40-5899HR.jpg | |
moon/apollo/image_archive/Apollo/a11/AS11-40-5907HR.jpg | |
moon/apollo/image_archive/Apollo/a11/AS11-40-5916HR.jpg |
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 sys, os | |
import optparse | |
import glob | |
import json | |
import time | |
import zipfile | |
import kmlengine | |
import kmldom | |
from kmlengine import Bbox |
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
// __BEGIN_LICENSE__ | |
// Copyright (C) 2006-2010 United States Government as represented by | |
// the Administrator of the National Aeronautics and Space Administration. | |
// All Rights Reserved. | |
// __END_LICENSE__ | |
#include <vw/Plate/PlateFile.h> | |
#include <vw/Plate/TileManipulation.h> | |
using namespace vw; |
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
#!/bin/bash | |
### | |
# Execute an isis command in a shell with the necessary | |
# environment variables set. | |
### | |
NEBULA_ISIS_ROOT="/big/packages/isis3/isis" | |
LOCAL_ISIS_ROOT="${HOME}/apps/isis3" |
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
#!/usr/bin/env python | |
import sys, os, os.path | |
import subprocess | |
from subprocess import Popen, PIPE | |
import shlex | |
import traceback | |
import urlparse | |
import urllib | |
DEFAULT_TMP_DIR = '/scratch/tmp' |