Skip to content

Instantly share code, notes, and snippets.

View paulgessinger's full-sized avatar

Paul Gessinger paulgessinger

View GitHub Profile
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.
@paulgessinger
paulgessinger / git.sh
Last active March 6, 2020 13:15
Setup
#!/bin/bash
wget https://github.com/git/git/archive/v2.21.0.tar.gz
tar xvf v2.21.0.tar.gz
pushd git-2.21.0/
make configure
./configure --prefix=$prefix
make -j$(nproc) install
popd
import matplotlib.pyplot as plt
import numpy as np
from IPython.display import HTML, display
from io import BytesIO
import base64
import os
import contextlib
def draw_eta_lines(ax, eta_range = (-3, 3), n=None, s=None, fmt="%.2f", **kwargs):
assert (n is None and s is not None) or (n is not None and s is None)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@paulgessinger
paulgessinger / ACR_ICS.ipynb
Last active June 23, 2018 12:24
ACR shifts to ICS
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

needs openssl, so for instance sudo yum install openssl-devel

./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
#!/usr/bin/env python
from __future__ import print_function
from datetime import datetime
import os
import numpy as np
import sys
from tabulate import tabulate
from random import shuffle
// This file is a "Hello, world!" in C++ language by GCC for wandbox.
#include <iostream>
#include <cstdlib>
#include <boost/variant.hpp>
#include <map>
#include <vector>
#include <sstream>
typedef boost::make_recursive_variant<
int,
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo "Setting up Docker"
apt-get install -y \