Skip to content

Instantly share code, notes, and snippets.

View VTi_uname
root@vuzero:~# uname -a
Linux vuzero 3.13.5 #1 SMP Fri Nov 3 01:13:58 CET 2017 mips GNU/Linux
View blue_colors.md
Red Green Blue RGB Hex Note
30 60 90 rgb(30,60,90) #1E3C5A Fedora background gradient, dark blue
45 90 135 rgb(45,90,135) #2D5A87 Windows background
60 120 180 rgb(60,120,180) #3C78B4 Fedora background gradient, light blue
37 75 112 rgb(37,75,112) #254B70 MC background (between win and dark blue)
View bash_mucha.sh
# [] source bash_mucha.sh
#
# see in /etc/profile function "pathmunge"
check_var () {
varname=$1
varvalue=${!1}
echo "# check_var function #"
echo "varname="$varname
echo "varvalue="$varvalue
@musinsky
musinsky / TGLHistPainter.cxx
Last active Aug 29, 2015
ROOT TH1 Highlight
View TGLHistPainter.cxx
// @(#)root/gl:$Id$
// Author: Timur Pocheptsov 17/11/2005
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
@musinsky
musinsky / README.md
Last active Nov 21, 2016
ROOT Tips Tricks
View README.md

ROOT Tips Tricks

@musinsky
musinsky / README.md
Last active Aug 29, 2015
ROOT Graph Highlight (simple)
View README.md

ROOT Graph Highlight

ROOT5 = branch v5-34-00-patches (06.10.2014) ROOT6 = branch master (06.10.2014)


diff

common (ROOT5 and ROOT6)

@musinsky
musinsky / README.md
Last active Aug 28, 2019
ROOT Graph Highlight
View README.md

ROOT Graph Highlight (extended)

@musinsky
musinsky / Makefile
Created Sep 6, 2013
fortran convert ascii from/to binary
View Makefile
OUT1 = ascii2bin
OUT2 = bin2ascii
SRCS1 = ${OUT1}.f
SRCS2 = ${OUT2}.f
FC = gfortran
all: ${OUT1} $(OUT2)
${OUT1}: ${SRCS1}
${FC} -o $@ $^
@musinsky
musinsky / TH1_AddBinContent.cxx
Last active Dec 20, 2015
Simplified basic functions of ROOT TH1 class
View TH1_AddBinContent.cxx
void TH1D::AddBinContent(Int_t bin) {
// AbstractMethod, overridden by TH1D (TH1.h)
++fArray[bin];
}