Skip to content

Instantly share code, notes, and snippets.

View johnarban's full-sized avatar

John Arban Lewis johnarban

View GitHub Profile
@jdavies-st
jdavies-st / modeling_to_asdf.py
Last active October 29, 2019 21:37
serialize astropy.modeling instance to ASDF
>>> from astropy.modeling import models, fitting
>>> import asdf
>>> import numpy as np
>>> x = np.random.random(100)
>>> y = np.random.random(100)
>>>
>>> mymodel = models.Polynomial1D(degree=3)
>>> fitter = fitting.LevMarLSQFitter()
>>> myfit = fitter(mymodel,x,y)
WARNING: Model is linear in parameters; consider using linear fitting methods. [astropy.modeling.fitting]
@bradyrx
bradyrx / ACF_vs_autocorr.ipynb
Created April 10, 2020 16:37
A comparison of the resulting ACF when using a classical ACF approach vs. an autocorrelation coefficient approach.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bashbunni
bashbunni / .zshrc
Last active October 15, 2025 05:34
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
/*
* Kevin Powell
* https://youtu.be/cCAtD_BAHNw
*/
*, *::before, *::after {
box-sizing: border-box;
}
* {