Skip to content

Instantly share code, notes, and snippets.

View godber's full-sized avatar
😺

Austin Godber godber

😺
View GitHub Profile
@godber
godber / 3dhist.py
Last active November 15, 2018 14:08
3D Histogram of an image in Python using VisPy
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Generates 3D Histogram of Wallaby image and renders to screen using vispy
Requires:
vispy
scipy
numpy
@godber
godber / index.js
Last active October 12, 2018 23:42
Teraslice dump_asset
'use strict';
const argv = require('yargs').argv;
const fse = require('fs-extra');
var elasticsearch = require('elasticsearch');
function saveAsset(assetName, assetVersion, binaryData) {
const newPath = `${assetName}/${assetVersion}`;
const tempFileName = `${newPath}/asset.zip`;
>code
```python
print("hello world")
```
@godber
godber / asset-version-spec.js
Created October 25, 2018 00:25
Teraslice Asset Version Check
'use strict';
const asset = require('../asset/asset');
const pkg = require('../package.json');
describe('asset version', () => {
it('should match package.json', () => {
expect(asset.version).toEqual(pkg.version);
});
});
@godber
godber / tmux-kafka.sh
Created March 19, 2019 02:51
Example scripting tmux - bootstrap a kafka session in
#!/usr/bin/env bash
cd temp/kafka_2.12-2.1.1/
SESSION='kafka'
tmux ls | grep -q $SESSION
if [ $? -eq 0 ]; then
tmux a -t $SESSION
@godber
godber / Makefile
Created March 23, 2019 22:34
Makefile that bootstraps my Python and Kafka Talk
.PHONY: all clean data help tipcs cleandata cleantopics
help:
echo "all - do all setup, gets kafka and data and processes data"
echo "clean - deletes temp/"
echo "cleandata - deletes /tmp/kafka-logs /tmp/zookeeper"
echo "cleantopics - removes kafka topics"
echo "topics - creates kafka topics"
all: temp/kafka_2.12-2.1.1 data
@godber
godber / README.md
Last active April 8, 2019 13:55
Raspberry Pi All Sky Camera with Raspicam

Here's what I do after image acquisition.

  • Capture images with capture-loop.sh on Raspberry Pi
    • The raspberry pi is connected to my home network and is uncerimoniously thrown on the roof
    • It NFS mounts a disk inside, which is where the script lives and images get saved, so if an eagle flies off with it, I still have the data.
  • Convert the images to grayscale
  • Stretch them
  • Remove the bright ones at the beginning and end0
@godber
godber / README.md
Created June 11, 2019 01:18
Python AIOHTTP

test

@godber
godber / print-date.py
Last active December 9, 2019 01:38
DesertPy CI Examples
#!/usr/bin/env python
from dateutil.rrule import rrule, MONTHLY, WE, SA
from datetime import datetime
def main(year):
saturday_dates = list(
rrule(
freq=MONTHLY,
count=12,
@godber
godber / README.md
Last active November 20, 2021 16:22
WebXR Presentation - Phx VR For Good - Dec 2021

Intro to WebXR Presentation - Phx VR For Good - Dec 2021

Presentation Summary

This presentation will provide an introduction to creating WebXR applications. It outlines the current set of technologies that support WebXR and look at some demos to better understand what is possible. It will also present a simple "Hello World" immersive web application implemented using A-Frame, a HTML and Javascript WebXR framework.

Bio - Austin Godber

Austin has been dabbling in XR for the last few years trying to gain a broad understanding of immersive technologies. He currently builds distributed petabyte scale data systems on Kubernetes. In the past, he calibrated and operated cameras on NASA’s MER and MSL Mars rovers, wrangled virtual penguins for JumpBox and helped start a Municipal WiFi company.