Skip to content

Instantly share code, notes, and snippets.

View astrojuanlu's full-sized avatar

Juan Luis Cano Rodríguez astrojuanlu

View GitHub Profile
#!/usr/bin/env bash
# Abort sign off on any error
set -e
# Start the benchmark timer
SECONDS=0
# Repository introspection
OWNER=$(gh repo view --json owner --jq .owner.login)
@camriddell
camriddell / collect_univariates.py
Last active March 8, 2024 20:56
A collection of univariate plots
from functools import partial
from textwrap import fill
from scipy.stats import norm, uniform, skewnorm, gaussian_kde, triang
from numpy import (
array, linspace, quantile, histogram, atleast_2d, mean, std, add
)
from numpy.lib.stride_tricks import sliding_window_view
from matplotlib.pyplot import subplots, show, rc
@s-m-e
s-m-e / poliastro_benchmark.ipynb
Last active September 3, 2020 14:05
poliastro benchmark
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cadojo
cadojo / Planar Launch State Equations.ipynb
Last active July 8, 2020 10:13
Planar Launch State Equations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@varqox
varqox / recording_application_and_microphone.md
Last active March 7, 2024 17:59
How to record multiple applications and microphone into one audio file on Linux using PulseAudio

How to record multiple applications and microphone into one audio file on Linux

Step 0. Terminology

Sinks are for output, sources are for input. To stream source to sink a loopback must be created. More shall you find there.

Step 1. Create output sink that will be recorded

Our output sink will be named recording.

pacmd load-module module-null-sink sink_name=recording sink_properties=device.description=recording
@rabernat
rabernat / zarr_over_http.ipynb
Last active July 16, 2019 18:12
Zarr over http
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from collections import defaultdict, OrderedDict
from scipy.integrate import solve_ivp
import networkx as nx
import numpy as np
import pdb
class Node:
def __init__(self, *args, **kwargs):
self._values = {}
import numpy as np
from astropy import units as u
from poliastro.bodies import Earth
from poliastro.core.angles import (
E_to_nu,
_kepler_equation,
_kepler_equation_prime,
nu_to_M,
)
@daniestevez
daniestevez / kiss_hexdump
Created August 25, 2017 14:12
ÑuSat packets
00000000 c0 00 05 38 12 a0 35 b6 17 81 00 50 02 98 9d b6 |...8..5....P....|
00000010 62 65 61 63 6f 6e ff 84 00 00 6c 70 6f 77 65 72 |beacon....lpower|
00000020 5f 62 65 61 63 6f 6e 9f fa 3f 10 d1 54 fa 3e f6 |_beacon..?..T.>.|
00000030 46 e8 fa 3f 0d 92 a7 fa 3f 0c 38 ed c0 c0 00 05 |F..?....?.8.....|
00000040 48 12 a1 35 fa 3e db dd 86 8e fa 41 43 6d b7 fa |H..5.>.....ACm..|
00000050 41 40 56 dd fa 41 43 2a 5a fa 41 3a e4 5d fa 41 |A@V..AC*Z.A:.].A|
00000060 43 02 2f fa 42 1d 91 59 fa 3e 22 3d 48 fa 3e db |C./.B..Y.>"=H.>.|
00000070 dc 35 aa fa 40 85 23 a7 fa 41 04 c0 c0 00 05 58 |.5..@.#..A.....X|
00000080 12 a2 35 da 35 18 55 01 02 fa 3e bb 64 5b 01 02 |..5.5.U...>.d[..|
00000090 fa 3f 5a 7b 0c 00 00 fa 00 00 00 00 01 00 fa 40 |.?Z{...........@|