Skip to content

Instantly share code, notes, and snippets.

Jan Musinsky musinsky

View GitHub Profile
@musinsky
musinsky / GistHub.php
Created Apr 12, 2012
Gist (GistHub) extension for MediaWiki
View GistHub.php
<?php
if( !defined( 'MEDIAWIKI' ) ) {
echo( "This file is part of an extension to the MediaWiki software and cannot be used standalone.\n" );
die( 1 );
}
$wgExtensionCredits['other'][] = array(
'name' => 'GistHub',
'author' => 'Adam Meyer, Jan Musinsky',
'description' => 'Import file(s) from [https://gist.github.com/ github:gist]',
@musinsky
musinsky / README.md
Last active Aug 28, 2019
ROOT Graph Highlight
View README.md

ROOT Graph Highlight (extended)

View gnome-shell.css
@import url("/usr/share/gnome-shell/theme/gnome-shell.css");
/* customizing GNOME Shell for desktop interface
with fonts size 9pt (instead default 11pt size) */
/* Text Styles */
/* default text style */
stage {
font-size: 9pt; /* 11pt */
}
@musinsky
musinsky / .astylerc
Last active Mar 5, 2019
Artistic Style (astyle) options file for ROOT & AliRoot
View .astylerc
### ROOT & AliRoot code formatting style
### https://gist.github.com/1078250
### tested on astyle 2.02.1
--indent=spaces=2 # indent using 2 (ROOT uses 3) spaces per indent
--indent-switches # indent switch blocks
--indent-namespaces # add extra indentation to namespace blocks
--indent-labels # add extra indentation to labels
--indent-preprocessor # indent multi-line preprocessor definitions
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)
@musinsky
musinsky / README.md
Last active Nov 21, 2016
ROOT Tips Tricks
View README.md

ROOT Tips Tricks

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 / 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];
}
You can’t perform that action at this time.