I hereby claim:
- I am ktf on github.
- I am ktf77 (https://keybase.io/ktf77) on keybase.
- I have a public key ASCMCAlg8ByqDKCWwuf09m1jRqJHmGpw2MZxK5YXZqrUpQo
To claim this, I am signing this object:
// Copyright CERN and copyright holders of ALICE O2. This software is | |
// distributed under the terms of the GNU General Public License v3 (GPL | |
// Version 3), copied verbatim in the file "COPYING". | |
// | |
// See http://alice-o2.web.cern.ch/license for full licensing information. | |
// | |
// In applying this license CERN does not waive the privileges and immunities | |
// granted to it by virtue of its status as an Intergovernmental Organization | |
// or submit itself to any jurisdiction. |
#include <cstddef> | |
#include <cstdint> | |
// Adapted from https://github.com/Manu343726/ctti | |
struct TypeIdHelpers { | |
// From https://github.com/foonathan/string_id. As usually, thanks Jonathan. | |
using hash_t = uint64_t; | |
// See http://www.isthe.com/chongo/tech/comp/fnv/#FNV-param |
FILES=$(git grep -l -e 'namespace[[:space:]]*framework[[:space:]]*[{]' Framework/) | |
git reset --hard HEAD | |
for x in $FILES; do | |
echo $x | |
ed -s $x<< \EOF | |
g/namespace[ ]*o2[ ]*{/s/[ ]*{// | |
a | |
{ | |
. |
#!/bin/bash -ex | |
FILES=`git grep iostream | grep /include/ | grep \.h: | sed -e 's/:.*//'` | |
for HEADER in $FILES; do | |
CXX=`echo $HEADER | sed -e's|include/[^/]*|src|;s|\.h$|.cxx|'` | |
HEADER_SHORT=`echo $HEADER | sed 's|.*/include/||g'` | |
echo $HEADER | |
echo $HEADER_SHORT | |
echo $CXX | |
# If there is no src Directory, we cannot simply amend the build like this. | |
if [ ! -d `dirname $CXX` ]; then |
I hereby claim:
To claim this, I am signing this object:
docker run --net=host -it cmssw/zookeeper & | |
docker run --net=host -it cmssw/mesos-master & | |
docker run --net=host -it cmssw/marathon & | |
docker run --net=host \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v /usr/local/bin/docker:/usr/bin/docker \ | |
-v /sys:/sys \ | |
-it \ | |
cmssw/mesos-slave |
FOO=<your-package-to-cleanup> | |
git cms-addpkg $FOO | |
cd $CMSSW_BASE/src | |
find . -type f -exec sed -i "/[$][Dd]ate:[^$]*[$]/d" {} \; | |
find . -type f -exec sed -i "/[$][Ii]d:[^$]*[$]/d" {} \; | |
find . -type f -exec sed -i "/[$][Aa]uthor:[^$]*[$]/d" {} \; | |
find . -type f -exec sed -i "/[$][Rr]evision[^$]*[$]/d" {} \; | |
find . -type f -exec sed -i "/[$][Ll]og:[^$]*[$]/d" {} \; | |
find . -type f -exec sed -i "/[$][Ss]ource:[^$]*[$]/d" {} \; |
$("#table_" + currentRelease).selectable({ | |
selected: function (event, ui) { | |
var checkBoxes = $(ui.selected).find("input"); | |
if ($(ui.selected).hasClass('click-selected')) { | |
$(ui.selected).removeClass('ui-selected click-selected'); | |
checkBoxes.prop("checked", !checkBoxes.prop("checked")); | |
} else { | |
$(ui.selected).addClass('click-selected'); | |
checkBoxes.prop("checked", !checkBoxes.prop("checked")); | |
} |
namespace { | |
template <class T> | |
struct entry { | |
char const* label; | |
T value; | |
}; | |
constexpr bool same(char const *x, char const *y) { | |
return !*x && !*y ? true | |
: /* default */ (*x == *y && same(x+1, y+1)); |
def usePythonWithModule(modulename): | |
import os | |
import sys | |
from os.path import exists, dirname, basename, join | |
try: | |
__import__(modulename) | |
except: | |
pythonpath = os.path.dirname(sys.executable) | |
check = False | |
for x in [x for x in os.environ["PATH"].split(":") if x]: |