See https://github.com/gipert/.dotfiles
:echo [&]<variable> " print [option]variable value
:so ~/.vimrc " reload vimrc
See https://github.com/gipert/.dotfiles
:echo [&]<variable> " print [option]variable value
:so ~/.vimrc " reload vimrc
| Homebrew build logs for gcc on "Scientific Linux release 7.4 (Nitrogen)" | |
| Build date: 2018-05-09 12:43:25 |
| Homebrew build logs for gcc on "Scientific Linux release 7.4 (Nitrogen)" | |
| Build date: 2018-05-09 12:54:43 |
| Homebrew build logs for gcc on "Scientific Linux release 7.4 (Nitrogen)" | |
| Build date: 2018-05-12 19:22:46 |
| using StatsBase, Distributions, Optim, ProgressMeter, Plots | |
| nexp = 100000 # number of simulated experiments | |
| nobs_mean = 1000 # number of expected counts in experiment | |
| function logL(μ, h::Histogram) # compute -log(L(μ)) | |
| logL = 0.0 | |
| # loop over bins | |
| for b in 1:length(h.edges[1])-1 | |
| low = h.edges[1][b] |
| /* paul_tol_colors.hpp | |
| * | |
| * Copyright (c) 2019 Luigi Pertoldi | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: |
| #= bayesian_blocks.jl | |
| = | |
| = Author: Luigi Pertoldi - pertoldi@pd.infn.it | |
| = Created: 29 Jun 2018 | |
| = | |
| = The following software is distributed under the MIT licence | |
| = http://www.opensource.org/licenses/mit-license.php | |
| = Copyright (c) 2018 Luigi Pertoldi | |
| = | |
| = Use Julia >= v0.7! |
| /* cpplog.hpp | |
| * | |
| * Author: Luigi Pertoldi | |
| * Created: Tue 02 Jul 2019 | |
| * | |
| * Usage: | |
| * | |
| * logging::min_level = logging::info; | |
| * logging::out(info) << "the program is doing well" << std::endl; | |
| * logging::out(error) << "an error occurred!" << std::endl; |
| #include <getopt.h> | |
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| int main(int argc, char** argv) { | |
| std::string progname(argv[0]); | |
| auto usage = [&]() { |