Skip to content

Instantly share code, notes, and snippets.

@DraTeots
DraTeots / vscode_mselect_rcopy.md
Created Jul 7, 2022
VSCode Linux middle button column select and right button copy paste
View vscode_mselect_rcopy.md

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
DraTeots / servilat.md
Last active Feb 17, 2022
Servilat sausage
View servilat.md

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
View gist:a3ce9862b314e4108a3a468fa32223e9
[По Лазерсону](https://www.youtube.com/watch?v=eAJUQFh155g)
На 5 литров:
- Вода (кипяток) 2,5 л
- Вода (холодная) 2,5 л
- Мука ржаная 85г
- Мука пшеничная 33г
- Сахар 60г + 3 ч.л. на каждую бутылку
- Дрожжи свежие ~ 8 г (по объёму как 3 горошины)
@DraTeots
DraTeots / readme.md
Last active Apr 6, 2021
Run G4E on farms and more
View readme.md

Documentation:

How to run on farms with Spack

ifarm1802.jlab.org> source /cvmfs/eic.opensciencegrid.org/packages/setup-env.csh 
ifarm1802.jlab.org> spack load /ef7rk23
@DraTeots
DraTeots / README.md
Last active Nov 6, 2020
EIC Spack hints and tricks
View README.md
@DraTeots
DraTeots / readme.md
Created Nov 29, 2018
Dependency Injection C++
View readme.md

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 http://boost-experimental.github.io/di/cpp-london-2017/#/

Google fruit

@DraTeots
DraTeots / gist:7a4ca00d4c46b4a498c7ac852259bb7e
Last active May 1, 2019
JLab RHEL7 machines (Npm, vscode, etc)
View gist:7a4ca00d4c46b4a498c7ac852259bb7e
@DraTeots
DraTeots / eic_jana_vscode.md
Last active Oct 29, 2018
VsCode debug EIC JANA
View eic_jana_vscode.md

Why vscode

Debugging capabilities

...

Working example:

Working debugger

@DraTeots
DraTeots / HighResolutionTimerProfile.cs
Last active Feb 26, 2019
HighResolutionTimer test and profile
View HighResolutionTimerProfile.cs
// profiling of HighResolutionTimer implementation
// https://gist.github.com/DraTeots/436019368d32007284f8a12f1ba0f545
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using System.Threading;
@DraTeots
DraTeots / HighResolutionTimer.cs
Last active Apr 5, 2022
HighResolutionTimer for .NET
View HighResolutionTimer.cs
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using System.Threading;
namespace HighResolutionTimer
{