Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mpiannucci's full-sized avatar

Matthew Iannucci mpiannucci

View GitHub Profile
@mpiannucci
mpiannucci / README.md
Created November 20, 2023 20:36
XPublish demo

Create virtual environment

python3 -m venv env/

Activate virtual environment

source env/bin/activate
@mpiannucci
mpiannucci / dbofs.ipynb
Last active March 6, 2023 20:22
NODD Kerchunk
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mpiannucci
mpiannucci / index.css
Last active December 15, 2022 17:52
Client Side Contouring WMS Data with d3
.fill-window {
height: 100%;
position: absolute;
left: 0;
width: 100%;
overflow: hidden;
}
body {
margin: 0px;
}
@mpiannucci
mpiannucci / polygonize.js
Last active March 4, 2022 21:20
D3 polygonize
import { contours } from 'd3-contour';
import * as GeoTIFF from 'geotiff';
import * as fs from 'fs';
const minLng = -95.9791062729049;
const minLat = 29.468568269199807;
const maxLng = -94.87582655116825;
const maxLat = 30.377703838800894;
let vals = undefined;
{
"format": "image/png",
"filename": "fractional-scale-test.png",
"frames": [
{
"maptime": "2020-08-30T12:00:00Z",
"title": "2020-08-30T12:00:00Z",
"overlays": [
{
"type": "tile",
@mpiannucci
mpiannucci / mapdelegate.swift
Last active April 6, 2020 02:52
BuoyFinder Map Overlays
import SwiftUI
import MapKit
import PlaygroundSupport
class SwellDataOverlay : NSObject, MKOverlay {
let coordinate: CLLocationCoordinate2D
let boundingMapRect: MKMapRect
let magnitude: Double
let angle: Double
@mpiannucci
mpiannucci / reactive_refresh_indicator.dart
Created July 14, 2018 04:13 — forked from kentcb/reactive_refresh_indicator.dart
A better RefreshIndicator for flutter
// Copyright 2014 The Chromium Authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following
@mpiannucci
mpiannucci / Keybindings.sublime-keymap
Last active November 21, 2017 19:26
Sublime-Text 3 User Settings
[
{ "keys": ["ctrl+q"], "command": "close_file" },
{ "keys": ["ctrl+k", "ctrl+0"], "command": "fold_all" },
]
@mpiannucci
mpiannucci / .vimrc
Last active November 21, 2017 19:19
Linux Config Files
" Try to determine type of file from name and contents
filetype plugin indent on
" Enable syntax highligting
syntax on
" Show partial commands on last line
set showcmd
" Highlight searches
@mpiannucci
mpiannucci / buoyspectraplotter.py
Last active August 14, 2017 17:28
Parse Raw NDBC Directional Wave Spectra
import urllib.request as request
import json
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import matplotlib.cm as cm
import numpy as np
class BuoySpectraPlotter:
def __init__(self, buoy_station):