Skip to content

Instantly share code, notes, and snippets.

@shinsuke-ota
shinsuke-ota / .zshrc-artlogin-f77
Last active February 24, 2025 03:28
artlogin for specific experiment
#!/bin/zsh
# artlogin for f77 experiment
# for your experiment please replace the name and environmental variables to indicate the correct places
# The recommended directory tree is
# exp
# └── f77
# ├── art_analysis
# │   ├── README.md
# │   └── user
# └── repos
@shinsuke-ota
shinsuke-ota / tar-without.sh
Created May 25, 2024 05:32
one liner for tar with removing specific path
find e585 -type f -not -path "**/.git/*" -not -path "**/build*" -not -path "**/*.dat*"| tar -zcv -T - -f e585_software.tgz
{
// style
gStyle->SetOptStat(1111111);
gStyle->SetOptFit(1111);
gStyle->SetStatFormat("10.6g");
TString dypath = gSystem->GetDynamicPath();
TString incpath = gSystem->GetIncludePath();
@shinsuke-ota
shinsuke-ota / thisnushellx.sh
Last active February 4, 2024 02:16
nushellx setting environmental variables
#!/bin/sh
nushellx_bin_dir=$(cd $(dirname $0); pwd)
nushellx_home=$nushellx_bin_dir/../../
export PATH=$nushellx_bin_dir:$PATH
export nushellx_sps=$nushellx_home/sps/
export mass_data=$nushellx_home/toi/mass-data/
export toi_data=$nushellx_home/toi/toi-data/
\documentclass[twocolumn, a4paper]{ltjsarticle}
\usepackage[dvipsnames]{xcolor} % 色の名前を拡張
\usepackage{tcolorbox} % 枠本体
\tcbuselibrary{raster,skins,breakable,theorems} % 呪文
\newenvironment{qbox}[1]{ % qbox環境を定義して使いやすく
\begin{tcolorbox}[
colframe = RoyalBlue,
colback = RoyalBlue!10!White,
@shinsuke-ota
shinsuke-ota / Base.cpp
Created February 10, 2023 10:40 — forked from sacko87/Base.cpp
Factory Pattern in C++ with templates (using the confusingly recurring template and registry patterns)
#include "Base.h"
Base::Base() :
IsRegistered_(false)
{ }
Base::Base(bool isRegistered) :
IsRegistered_(isRegistered)
{ }
git ls-files $* | xargs -I@ bash -c 'echo "$(git log -1 --format="%aI" -- @)" @' | sort -r