Skip to content

Instantly share code, notes, and snippets.

View djhoese's full-sized avatar

David Hoese djhoese

  • Space Science and Engineering Center (@ssec)
  • Madison, WI
  • X @djhoese
View GitHub Profile
@djhoese
djhoese / animation_rotate_cube.py
Created September 30, 2020 13:20
Create MP4 animation of rotating cube.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vispy: gallery 50
"""
This example shows how to display 3D objects.
You should see a colored outlined spinning cube.
"""
import numpy as np
from vispy import app, gloo
@djhoese
djhoese / .gitignore
Last active December 12, 2019 23:44
Work for the KaggleTMDB Box Office Prediction
*.png
test.csv
train.csv
sample_submission.csv
tmdb-box-office-prediction.zip
@djhoese
djhoese / run_pytroll_gource.sh
Last active December 4, 2019 15:29
Pytroll Gource Script
#!/bin/bash
wrk_dir=$1
cd $wrk_dir
if [ ! -e $wrk_dir/logs ]
then
mkdir $wrk_dir/logs
fi
@djhoese
djhoese / shadertoy.py
Created July 25, 2019 17:43
examples/demo/gloo/shadertoy.py example from vispy (removed for licensing reasons)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vispy: gallery 2, testskip
# Copyright (c) Vispy Development Team. All Rights Reserved.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
"""
Shadertoy demo. You can copy-paste shader code from an example on
www.shadertoy.com and get the demo.
@djhoese
djhoese / create_authors_list.py
Last active October 23, 2018 18:30
Python script for getting contributors from a PyTroll repository
#!/usr/bin/env python3
# encoding: utf-8
"""Create a markdown list of authors for a particular repository.
python create_authors_list.py -u djhoese -r satpy
Requires the pygithub package.
"""
import getpass
@djhoese
djhoese / CLA.md
Last active January 12, 2018 21:17
Contributor License Agreement for SatPy and other PyTroll projects

SatPy Individual Contributor License Agreement

Thank you for your interest in contributing to SatPy ("We" or "Us").

This contributor agreement ("Agreement") documents the rights granted by contributors to Us. To make this document effective, please sign it and send it to Us by electronic submission, following the instructions at https://cla-assistant.io/pytroll/satpy. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.

1. Definitions

"You" means the individual who Submits a Contribution to Us.

"Contribution" means any work of authorship that is Submitted by You to Us in which You own or assert ownership of the Copyright. If You do not own the Copyright in the entire work of authorship, please follow the instructions in https://cla-assistant.io/.

@djhoese
djhoese / create_contributor_map.py
Last active October 13, 2017 02:08
Script to generate a map of PyTroll contributors
#!/usr/bin/env python3
# encoding: utf-8
import getpass
import logging
import os
import sys
import json
import geocoder
import numpy as np