Skip to content

Instantly share code, notes, and snippets.

View DraTeots's full-sized avatar

Dmitry Romanov DraTeots

View GitHub Profile
DraTeots /
Last active June 5, 2023 15:23
Get started with EIC simulation and reconstruction (EPIC)

Get started with EIC simulation and reconstruction

The quickest and recommended way to start with EIC software is eic-shell

The EIC environment eic-shell is a singularity/docker container with a curated selection of software components. It is the recommended way to use eicrecon as it already has all of the dependencies compiled with matching version numbers. This requires either singularity or docker to be installed on your local machine. Below are some quick start instructions for using Singularity.

DraTeots /
Created July 7, 2022 21:16
VSCode Linux middle button column select and right button copy paste

VSCode Linux middle button column select, right button copy paste

What is configured:

  1. Middle mouse button is used for column selection
  2. Right mouse button is used for copy/paste
  3. Context menu is triggered by shift+right button

Visual Studio Code settings:

DraTeots /
Last active February 17, 2022 18:25
Servilat sausage

For 1 kilo:

  • Beef - 25% (250g)
  • Pork(30% fat) - 75%
  • Salt + Nitrite salt - 2%
    • 2.5g for (6.25% of nitrite) cure #1
    • 17.5 for a regular salt
  • Black pepper - 2g
  • Nutmeg - 1g
DraTeots /
Last active December 9, 2022 20:57
Белый квас
DraTeots /
Last active April 6, 2021 18:47
Run G4E on farms and more


How to run on farms with Spack> source /cvmfs/> spack load /ef7rk23
DraTeots /
Last active November 6, 2020 06:40
EIC Spack hints and tricks
DraTeots /
Created November 29, 2018 19:57
Dependency Injection C++

A presentaion

While it is a presentation, it pretty clear shows a problem on a very simple example and tries many approaches to solve the problem. It tries to sell boost::DI, yes, but is still is great as a learning material

Google fruit

DraTeots / gist:7a4ca00d4c46b4a498c7ac852259bb7e
Last active May 1, 2019 21:32
JLab RHEL7 machines (Npm, vscode, etc)
View gist:7a4ca00d4c46b4a498c7ac852259bb7e
DraTeots /
Last active October 29, 2018 03:35
VsCode debug EIC JANA

Why vscode

Debugging capabilities


Working example:

Working debugger

DraTeots / HighResolutionTimerProfile.cs
Last active February 26, 2019 10:17
HighResolutionTimer test and profile
View HighResolutionTimerProfile.cs
// profiling of HighResolutionTimer implementation
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using System.Threading;