Skip to content

Instantly share code, notes, and snippets.

View Isaac-Kwon's full-sized avatar
🤔
/tf

Minjae Isaac Kwon Isaac-Kwon

🤔
/tf
View GitHub Profile
////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Class Dual
// tag: template container, bidirectional map
// https://gist.github.com/Isaac-Kwon/9c4742f7ef7be49826faf1301aad9d3f
//
// Developer/Maintainer: "Minjae Isaac Kwon" <minjae.isaac.kwon@gmail.com>
// License: MIT
//
////////////////////////////////////////////////////////////////////////////////////////////////////////
@Isaac-Kwon
Isaac-Kwon / Onestop_Condor.md
Last active January 12, 2023 04:51
onestop shell script for condor_submit

Onestop_Condor

#include "TROOT.h"
#include "TTree.h"
#include "iostream"
#include "vector"
TTree* ascii2treefunc(TString filename){
std::vector<TString> lnames = {
"v1","v2","v3","v4","v5" //...
};
@Isaac-Kwon
Isaac-Kwon / epost_screenshots.py
Last active June 1, 2022 01:20
Python script for automatic screenshot of epost.go.kr with waybill of Korean Post
from selenium import webdriver
from PIL import Image
from selenium.webdriver.chrome.options import Options
from bs4 import BeautifulSoup
from pandas import DataFrame
waybills = [1000000000000,2000000000000] #input the list of waybills
#run first time to get scrollHeight
chrome_options = Options()
#! /bin/bash
MACRO="/path/to/analysis.cpp"
INPUTFILE="/path/to/filenames.lst"
DATADIR="/path/to/data_directory"
#########################################
WORKDIR=$(date +%y%m%d%H%M%S)
# in exe directory
set(TEST_EXE
test_exe1
test_exe2
test_exe3
)
# for now put the executables in the build root
# for compatibility with existing scripts
#
# need "pip install openpyxl
#
from openpyxl import load_workbook
def loadExcel(fname="./fname.xlsx", sname='sheet'):
load_wb = load_workbook(fname, data_only=True)
load_ws = load_wb['Sheet1']
@Isaac-Kwon
Isaac-Kwon / latex_cleanup.sh
Created October 13, 2021 08:36
Shell script to clean-up the directory using for latex compilation
#!/bin/sh
index=$(date +%y%m%d%H%M%S)
tar -czf ../texbackup_$index.tar.gz *
for ext in "blg" "aux" "lot" "synctex.gz" "fls" "bbl" "out" "bcf" "lof" "toc" "fdb_latexmk" "log" "run.xml" "-converted-to.pdf"
do
find . -name "*.$ext" -delete -print
done
@Isaac-Kwon
Isaac-Kwon / Garfield-CVMFS.md
Last active July 18, 2021 05:15
CVMFS 에서 Garfield 세팅하고 빌드, 실행하기