See how a minor change to your commit message style can make a difference.
Tip
Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
See how a minor change to your commit message style can make a difference.
Tip
Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
# Attempts to demangle all mangled symbols in the current program using the Rust | |
# mangling schemes, and replace the default symbol and function signature | |
# (if applicable) with the demangled symbol. | |
# | |
# License: MIT OR Apache-2.0 | |
#@author Jack Grigg <[email protected]> | |
#@category Symbol | |
import string |
import {useSelect, useDispatch} from '@wordpress/data' | |
//Access the current mode value | |
const { deviceType } = useSelect( select => { | |
const { __experimentalGetPreviewDeviceType } = select( 'core/edit-post' ); | |
return { | |
deviceType: __experimentalGetPreviewDeviceType(), | |
} | |
}, [] ); |
import json | |
from io import BytesIO | |
from pathlib import Path | |
from struct import Struct | |
from typing import TYPE_CHECKING | |
from PIL import Image | |
from PIL.PngImagePlugin import PngImageFile | |
if TYPE_CHECKING: |
You can take the same source code package that Ubuntu uses to build jq, compile it again, and realize 90% better performance.
I use jq
for processing GeoJSON files and other open data offered in JSON format. Today I am working with a 500MB GeoJSON file that contains the Alameda County Assessor's parcel map. I want to run a query that prints the city for every parcel worth more than a threshold amount. The program is
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
import matplotlib.pyplot as plt | |
import numpy as np | |
from scipy import signal | |
# Source: https://github.com/guillaume-chevalier/filtering-stft-and-laplace-transform | |
def butter_lowpass_filter(data, cutoff_freq, sampling_freq, order=4): | |
nyq_freq = 0.5 * sampling_freq | |
normal_cutoff = float(cutoff_freq) / nyq_freq | |
b, a = signal.butter(order, normal_cutoff, btype='lowpass') |
import io.github.resilience4j.bulkhead.Bulkhead | |
import io.github.resilience4j.bulkhead.utils.BulkheadUtils | |
import io.grpc.CallOptions | |
import io.grpc.Channel | |
import io.grpc.ClientCall | |
import io.grpc.ClientInterceptor | |
import io.grpc.ClientInterceptors | |
import io.grpc.ForwardingClientCallListener | |
import io.grpc.Metadata | |
import io.grpc.MethodDescriptor |