Skip to content

Instantly share code, notes, and snippets.

@tueda
tueda / EasyDatasets.md
Last active December 18, 2023 07:37
A biased list of easily accessible datasets.
@tueda
tueda / x
Last active May 21, 2024 01:56
Running a development version of FORM. #bin #sh #launcher #dev #form
#!/bin/bash
#
# Usage:
# ./x [update]
# [4.1.0|4.2.0|4.2.1|4.3.0|4.3.1]
# [check|time [-n <times>]]
# [coverage|gprof|valgrind [<valgrind options>]|helgrind|drd|sanitize]
# [form|vorm|tform|tvorm|parform|parvorm]
# [args...]
#
@tueda
tueda / test11.frm
Created April 20, 2023 07:29
FORM vs. Wolfram: simple examples
* Example:
* form -D M=10 -D N=15 test11.frm
Symbol x1,...,x`M';
Local F = (x1+...+x`M')^`N';
.end
@tueda
tueda / FORM-source-notes.md
Last active May 2, 2023 01:20
Some personal notes for the source code of FORM: https://github.com/vermaseren/form.

Undocumented environment variables

External channels

  • FORM_PIPES

ParFORM

  • PF_LOG
  • PF_RBUFS
@tueda
tueda / auto-cherry-pick.sh
Last active April 11, 2023 10:49
Try "git cherry-pick" in a range of commits. #shell #git #cherry-pick
#!/bin/sh
#
# @file auto-cherry-pick.sh
#
# Usage:
# auto-cherry-pick.sh ref1...ref2:
#
set -eu
output=auto-cherry-pick.log
@tueda
tueda / $my-madminer-jupyter-env.md
Last active March 29, 2023 12:31
Docker image for MadGraph5_aMC@NLO + MadMiner + Jupyter. #docker #python #jupyter
@tueda
tueda / MakeRationalApproximation.wls
Created March 22, 2023 08:37
FORM procedure to approximates some zeta values by rational numbers. #form
chunkifyString[s_String, n_Integer] :=
StringJoin @@@ Partition[Characters[s], UpTo[n]];
writeRationalApproximation[
stream_, x_, n_, width_:72
] := Module[{s, lines, i},
s = Rationalize[x, Abs[x * 10^(-n)]] // InputForm // ToString;
lines = chunkifyString[s, width - 1];
Do[
s = lines[[i]];
@tueda
tueda / $colab_cache.md
Last active August 21, 2023 10:01
Cache on drive for Google colaboratory. #python #colab #cache
!pip install git+https://gist.github.com/tueda/ec0181f0f4c8961d49dc659f79cbfd4a

from google.colab import drive
drive.mount('/content/drive')

import colab_cache

cache = colab_cache.Cache('hello-2.12.1')
if cache.exists():
@tueda
tueda / run-mg5_aMC.sh
Last active March 14, 2023 06:16
Run MadGraph5_aMC@NLO.
#!/bin/bash
#
# @file run-mg5_aMC.sh
#
# Runs MadGraph5_aMC@NLO. This script downloads and
# sets up MadGraph5_aMC@NLO if needed.
#
set -eu
set -o pipefail
@tueda
tueda / lhapdf-colab.ipynb
Last active June 21, 2023 06:49
lhapdf-colab.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.