Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
.ef0,.f0 { color: #000000; } .eb0,.b0 { background-color: #000000; }
.ef1,.f1 { color: #AA0000; } .eb1,.b1 { background-color: #AA0000; }
.ef2,.f2 { color: #00AA00; } .eb2,.b2 { background-color: #00AA00; }
.ef3,.f3 { color: #AA5500; } .eb3,.b3 { background-color: #AA5500; }
.ef4,.f4 { color: #0000AA; } .eb4,.b4 { background-color: #0000AA; }
.ef5,.f5 { color: #AA00AA; } .eb5,.b5 { background-color: #AA00AA; }
amazonChoice bestSeller position.global_position title asin price.savings_amount reviews.rating price.discounted position.position price.currency price.current_price position.page thumbnail sponsored score amazonPrime url reviews.total_reviews price.savings_percent price.before_price
4 [ 1]  0.00 0  1ct Walfront AS5048A Magnetic Encoder, PWM SPI Interface 14 Bit Fit for Brushless Motor
B08LDFJ7F4 https://www.amazon.com/dp/B08LDFJ7F4
4 [ 2]  0.00 0  7ct uxcell 7 Pcs D Shaft 20 Points 360 Degree Rotary Encoder Switch, 6 mm
B0197X1UZY https://www.amazon.com/dp/B0197X1UZY
4 [ 3]  0.00 0  1ct Rotary Encoder Aluminum Alloy Spring Bracket Holder 20mm Hole for GHS38
B08C2HHY6W https://www.amazon.com/dp/B08C2HHY6W
4 [ 4]  0.00 0  1ct Dynapar 22
#!/usr/bin/perl
# Change to a directory seen in the current tmux pane.
#
# Free for everyone for everything good, according to the author,
# jaggz.h {who is at} gmail.com. 2022-04-30
#
# https://gist.github.com/dcfdabf1f3c5576a476c283379df04c4
# Screenshot: https://i.imgur.com/22iV7j7.png
#
# Setup:
#!/usr/bin/perl
use 5.24.0;
use Text::Table;
my $data = <<'EOT';
1/16 1.5875
1/8 3.1750
3/16 4.7625
1/4 6.3500
5/16 7.9375
3/8 9.5250
#!/usr/bin/perl
use warnings;
use 5.24.0;
use Text::Table;
use Getopt::Lucid qw( :all );
# Colours!
my $a_match="\033[33;1m";
my $a_close="\033[36;1m";
my $a_rst="\033[;m";
from __future__ import print_function
import sys
# Some color codes for terminals.
# You just print the text and color codes, and print rst to
# send the color reset sequence.
# The color sequence names are in the first bit of code below.
# Usually, just use with something like:
#!/bin/bash
# by jaggz.h {who is over at} gmail.com
# CC-BY. Reference my email or Jaggz Tech @ Youtube
# gist-paste -u https://gist.github.com/jaggzh/040778fe4260f19ad35dce0fa083e523
defmodel=e # Default model from models=() array below
blank_line_delay=.3 # Not sure if this works for other systems' sleep commands
#!/usr/bin/env python3
import numpy as np
import matplotlib.pyplot as plt
import sys
from audioproc import *
def find_peaks(energy, *, num_peaks, winsize):
en_len = len(energy)
spacing = en_len // num_peaks
cands = np.arange(spacing, en_len - spacing, spacing)
#!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
from audioproc import *
from utils import *
import matplotlib.pyplot as plt
import matplotlib.animation as animation
def plot_find_peaks(energy, *, num_peaks, winsize):
"""
#!/usr/bin/env python
# gist-paste -u https://gist.github.com/jaggzh/5c345fc072ddf5a6199ba19ac6112001
import numpy as np
import matplotlib.pyplot as plt
from audioproc import *
from utils import *
import matplotlib.pyplot as plt
import matplotlib.animation as animation
def plot_find_peaks(energy, *, num_peaks, winsize):