Skip to content

Instantly share code, notes, and snippets.

View brucecrevensten's full-sized avatar

Bruce Crevensten brucecrevensten

View GitHub Profile
@brucecrevensten
brucecrevensten / gist:860b02c5dffd35790a57
Created May 9, 2014 21:40
snap drupal comm charts modal example
$('#modal_name_id').button({
text: false,
icons: {
primary: 'ui-icon-help'
}
}).click(function(e) {
$('#modal_block').show().dialog({
draggable: false,
modal: true,
title: 'About scenarios',
@brucecrevensten
brucecrevensten / gist:a065ea0f49a039475760
Created September 2, 2014 13:02
Working configuration file
services:
demo:
tms:
layers:
- name: bing
title: Bing Maps
sources: [bing_cache]
caches:
@brucecrevensten
brucecrevensten / gist:288817ea067dd118a85c
Created September 2, 2014 13:03
Working configuration file
services:
demo:
tms:
layers:
- name: ginaBdl
title: GINA BDL
sources: [gina_bdl_cache]
caches:
@brucecrevensten
brucecrevensten / pysar_object_analysis.py
Created December 16, 2010 04:18
thinking about oo-style reroll of ray's cudasar
# analysis of implicit object hierarchy for rayjanwilson/cudasar, with an eye towards creating a runtime-swappable algorithm for sar processing.
# basic idea here is that we'll use Builder pattern to assemble a SarProcessor,
# and make each distinct algorithm a little object hierarchy so that we can mix'n'match
# standard + cuda + other approaches for more interesting benchmarking
# the builder patterns
class SarProcessor:
def process(SarImage):
return self.azimuthCompression( self.RangeCompression( SarImage ), SarImage.metadata ) # need to pass the whole SarImage to get the L0
@brucecrevensten
brucecrevensten / gist:1412279
Created December 1, 2011 00:36
Trying to make a map file work
MAP
NAME "WMSSNAPTest"
STATUS ON
EXTENT -2183223.206 158412.933 4280776.794 2556412.933
UNITS METERS
WEB
IMAGEPATH "/tmp/"
METADATA
"wms_title" "Testing"
@brucecrevensten
brucecrevensten / sketch
Created December 14, 2011 18:19
backbone-jasmine
Model = Backbone.Model.extend({
url: '/something'
});
aModel = new Model({ id: 'else' });
FixturesSync = function(method, model, options) {
var url = model.url || model.collection.url;
switch (method) {
case "read":
<target name="jasmine" description="Run unit tests with Jasmine">
    <exec executable="${basedir}/tests/js/jasmine-reporters/test/phantomjs.runner.sh">
        <env key="DISPLAY" value=":0" />
        <arg line="${basedir}/tests/js/jasmine-reporters/test/JUnitRunner.html"/>
    </exec>
    <copy todir="${basedir}/build/test-results">
        <fileset dir="${basedir}/tests/js/jasmine-reporters/test">
            <include name="**/TEST*" />
        </fileset>
="'" & B4 & " to " & C4 & "' : '#" & DEC2HEX(D4, 2) & DEC2HEX(E4,2) & DEC2HEX(F4, 2) & "',"
@brucecrevensten
brucecrevensten / oscon.md
Created July 19, 2012 18:30
OSCON notes
@brucecrevensten
brucecrevensten / gist:3177782
Created July 25, 2012 18:36
snap apache conf
snap:
<VirtualHost *:80>
Redirect permanent / http://www.snap.uaf.edu
ServerName snap.uaf.edu
</VirtualHost>
www.snap:
<VirtualHost *:80>
Redirect /home http://www.snap.uaf.edu
ServerAdmin webmaster@dev.www.snap.uaf.edu