Skip to content

Instantly share code, notes, and snippets.

View paulgessinger's full-sized avatar

Paul Gessinger paulgessinger

  • CERN
  • Geneva, Switzerland
View GitHub Profile
@paulgessinger
paulgessinger / CMakeLists.txt
Last active June 9, 2021 18:45
Assign C++ type to `std::function` with pybind11 without going through python
project(pybind_repro)
cmake_minimum_required(VERSION 3.14)
find_package(pybind11 CONFIG REQUIRED)
pybind11_add_module(demo binding.cpp)
\documentclass[dvipsnames,crop=true]{standalone}
\usepackage{tikz,pgfplots}
\usetikzlibrary{calc,external,intersections,pgfplots.colormaps}
\begin{document}
\tikzsetnextfilename{seeding}
\begin{tikzpicture}[scale=0.7,line width=1pt]
\begin{scope}[/pgfplots/colormap/viridis,
#!/usr/bin/env python3
import subprocess as sp
import sys
import time
from datetime import datetime
import re
import csv
import json
import os
import re
\documentclass[dvipsnames,crop=true]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc,external,3d}
\usepackage{svg}
\begin{document}
\tikzsetnextfilename{bounding_box}
\begin{tikzpicture}[scale=1.5,
line width=1pt,
% x={(1cm,0cm)},
% y={(0.2cm,0.25cm)},
@paulgessinger
paulgessinger / dd4hep_1_11_2_backport.patch
Last active April 30, 2020 11:49
Backport of fixed to DD4hep 1.11.2
diff --git a/DDDigi/CMakeLists.txt b/DDDigi/CMakeLists.txt
index d6f26201..f8b522f7 100644
--- a/DDDigi/CMakeLists.txt
+++ b/DDDigi/CMakeLists.txt
@@ -24,12 +24,10 @@ target_include_directories(DDDigi
FIND_PACKAGE(TBB QUIET)
if(TBB_FOUND)
- dd4hep_print( "|++> TBB_INCLUDE_DIR --> ${TBB_INCLUDE_DIR}")
- dd4hep_print( "|++> TBB_LIBRARY --> ${TBB_LIBRARY}")
#!/usr/bin/env python
# Author: Ivan Razumov
# Usage: lcgview.py [options] <view_root>
# This package creates a "view" of LCG release in folder <view_root>.
# optional arguments:
# -h, --help show this help message and exit
# -l LCGPATH, --lcgpath LCGPATH top directory of LCG releases (default: /afs/cern.ch/sw/lcg/releases)
# -r LCGREL, --release LCGREL LCG release number (default: 80)
# -p LCGPLAT, --platform LCGPLAT Platform to use (default: x86_64-slc6-gcc49-opt)
curl -sSL http://invisible-island.net/datafiles/current/terminfo.src.gz | >/tmp/terminfo.src gunzip
tic /tmp/terminfo.src
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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