Skip to content

Instantly share code, notes, and snippets.

@bnordgren
bnordgren / ProFX.conf.disabled
Last active May 25, 2023 13:53
Pipewire configuration for webmeetings and audio mixers
context.modules = [
{ name = libpipewire-module-loopback
args = {
node.description = "ProFX Channels 3-4"
#target.delay.sec = 1.5
capture.props = {
node.name = "ProFX_3_4"
media.class = "Audio/Sink"
audio.channels = 2
audio.position = [ FL FR ]
@bnordgren
bnordgren / BoxUploader.py
Created March 9, 2022 23:31
Upload to Box using file request URL
import datetime
import requests
import urllib
import os.path
import sys
import json
#
# Given a "File Request URL" and a local file, this program uploads to a box folder.
#
@bnordgren
bnordgren / lc_trends.py
Last active September 13, 2018 21:57 — forked from perrygeo/zonal_stats.py
Python implementation of zonal statistics function. Optimized for dense polygon layers, uses numpy, GDAL and OGR to rival the speed of starspan.
@bnordgren
bnordgren / snow_notebook.ipynb
Last active November 12, 2015 19:46
EASE Grid 2.0 via Python, pyproj, and gdal_translate
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bnordgren
bnordgren / qty_index.py
Created October 25, 2014 20:26
Unit-ed index translator
from abc import ABCMeta, abstractmethod
import numpy as np
import astropy.units as u
import astropy.coordinates as c
class SamplingFunction (object) :
__metaclass__ = ABCMeta
@abstractmethod
def get_index(self, unit_val) :
@bnordgren
bnordgren / analysis_Asia_missoula
Last active December 29, 2015 09:29
Analysis of Eurasia run
{
"metadata": {
"name": "analyze_chao_config"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{