Skip to content

Instantly share code, notes, and snippets.

View mazurov's full-sized avatar

Alexander Mazurov mazurov

View GitHub Profile
@mazurov
mazurov / nightless.sh
Created January 20, 2014 15:16
How to setup developer environment at LHCb
. LbLogin.sh -c x86_64-slc6-clang33-opt
SetupProject --build-env --nightly lhcb-lcg-head Mon LHCb HEAD
getpack --no-config Phys/LoKiCore head
make
####
@hemanth
hemanth / devtool.bash
Created November 23, 2013 06:31
Hacking Chrome DevTools Setup
#!/usr/bin/env bash
# Setup script for hacking chrome devtools
# Source -> https://medium.com/p/8c8896f5cef3
echo "Creating folder and initialize a git repo"
mkdir devtools-frontend && cd devtools-frontend
git init
echo "Adding chromium remote and initialize sparse checkout"
git remote add upstream https://chromium.googlesource.com/chromium/blink
@mazurov
mazurov / colorize.sh
Last active December 28, 2015 16:39
#!/bin/sh
enscript --pretty-print -C -f "Courier8" -F "Courier9" --color TrigT1CaloMonitoring/share/TrigT1CaloMonitoring_forRecExCommission_Run2.py -p -|psnup -m 43 -l -b1 -4 -d | ps2pdf - output.pdf
enscript -r --pretty-print -C -f "Courier8" -F "Courier9" --color TrigT1CaloMonitoring/share/TrigT1CaloMonitoring_forRecExCommission_Run2.py -p -|psnup -l -b1 -4 -d | ps2pdf - output.pdf
enscript --pretty-print -C -f "Courier12" -F "Courier14" -MA4 --color Rearrange.cpp Parity* -p -|psnup -6 -pa4 -d |ps2pdf - output.pdf
#enscript --pretty-print -C -j -f "Courier12" -F "Courier14" -MA4 --color *.js -p -|psnup -4 -pa4 -m2cm |ps2pdf - output.pdf
"""
Helper module for displaying ROOT canvases in ipython notebooks
Usage example:
# Save this file as rootnotes.py to your working directory.
import rootnotes
c1 = rootnotes.default_canvas()
fun1 = TF1( 'fun1', 'abs(sin(x)/x)', 0, 10)
c1.SetGridx()