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
""" | |
Module to apply window function matrix to Cls | |
Compatible with matrices generated by https://github.com/ntessore/clwin. | |
Configuration: | |
Add an entry of the form `m_<spectrum> = <matrix.fits>` for each spectrum that | |
needs to be modified. |
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
#!/bin/bash -i | |
cat << EOF && read -n1 -srp "press key to start, Ctrl+C to abort" && echo | |
--- | |
to get this script: | |
$ curl -OL https://git.io/cosmosis-conda.sh | |
$ chmod +x cosmosis-conda.sh | |
to run this script: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
#### | |
# small command line tool to get a BibTeX bibliography from ADS bibcodes | |
# | |
# $ adsbibq.py '2015A&A...580A..79T' '2016MNRAS.463.3115T' | |
# | |
# Query Results from the ADS Database | |
# | |
# Retrieved 2 abstracts, starting with number 1. Total number selected: 2. |
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
#!/bin/bash | |
#### | |
# list "unneccessary" installed packages (i.e. not needed by any other package) | |
# | |
# save: $ curl -Lo /usr/local/bin/brew-unnecessary https://git.io/brew-unnecessary | |
# chmod: $ chmod +x /usr/local/bin/brew-unnecessary | |
# run: $ brew unnecessary | |
#### |
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
#!/bin/bash | |
############################################################################## | |
# One command to edit files from the command line. Helps your muscle memory. # | |
# # | |
# Do you instinctively write `mate` or `atom` to edit files, only to get # | |
# told `command not found` because you forgot you are in a SSH session? # | |
# The `edit` script is a simple wrapper that launches the command specified # | |
# through the `$EDITOR`, `$VISUAL` or `$EDIT_EDITOR` environment variable. # | |
# In this way, you will always use the same command to start editing files. # |
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
#pragma once | |
namespace std14 | |
{ | |
template<typename T, T... Ints> | |
struct integer_sequence | |
{ | |
typedef T value_type; | |
static constexpr std::size_t size() { return sizeof...(Ints); } | |
}; |
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
#ifndef EIGEN_SVDLIBCSUPPORT_H | |
#define EIGEN_SVDLIBCSUPPORT_H | |
#include <Eigen/Sparse> | |
namespace Eigen | |
{ | |
namespace svdlib_h | |
{ | |
extern "C" |
NewerOlder