Using https://volkovlabs.io/plugins/volkovlabs-echarts-panel/ you can create a pretty nice graph showing both wind speed & direction.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env uv python | |
""" | |
CrateDB Settings Extractor | |
This tool extracts settings from CrateDB's documentation and outputs them | |
in either JSON or Markdown format, or the SQL statements to set the default value. | |
It parses the HTML structure of the documentation to identify settings, their | |
descriptions, default values, and whether they're runtime configurable. | |
Author: wolta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Try and squash unstaged changes into existing branch commits. | |
# | |
# This command examines each unstaged file and attempts to create a fix-up | |
# commit to squash it into its natural parent in the current branch. | |
# | |
# - If it's able to do this for all modified files, the fix-up files are | |
# automatically squashed in. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// I'm tired of extensions that automatically: | |
// - show welcome pages / walkthroughs | |
// - show release notes | |
// - send telemetry | |
// - recommend things | |
// | |
// This disables all of that stuff. | |
// If you have more config, leave a comment so I can add it!! | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# synthio_midi_synth.py - pretty usable MIDI-controlled synth using synthio in CircuitPython | |
# 11 May 2023 - @todbot / Tod Kurt | |
# Uses cheapie PCM5102 DAC on QTPY RP2040 | |
# Video demo: https://www.youtube.com/watch?v=N-PbbWWDE6k | |
# Features: | |
# - midi velocity controls attack rate (gentle press = slow, hard press = fast) | |
# - notes have small random detune on all oscillators to reduce phase stacking | |
# - adjustable number of detuned oscillators per note 1-5 (midi controller 83) | |
# - five selectable waveforms: saw, squ, sin, noisy sin, noise (midi controller 82) | |
# - vibrato depth on mod wheel (midi controller 1) |
> Write a blog post about this code trick:
import logging
import os
from funcy import monkey
from django.db.models.query_utils import DeferredAttribute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from netCDF4 import Dataset | |
import os | |
import datetime | |
import xarray as xr | |
import pandas as pd | |
import matplotlib.dates as mdates | |
import matplotlib.dates as mdates | |
from matplotlib import pyplot as plt | |
from matplotlib.colors import LogNorm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import os | |
import shutil | |
import subprocess | |
import packaging.version | |
import grayskull.strategy | |
from importlib.resources import open_binary | |
import yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import os | |
from io import StringIO | |
import pandas as pd | |
# Instructions for Dataplane data pipelines - https://dataplane.app | |
# Database credentials from Dataplane Secrets | |
pgUser = os.getenv("dp_secret_pg_user") | |
pgPassword = os.getenv("dp_secret_pg_password") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder