This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cassert> | |
#include <iostream> | |
#include <string> | |
#include <filesystem> | |
int main(int argc, const char** argv) { | |
std::string inputPathname; | |
if (argc == 2) { | |
inputPathname = argv[1]; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Add script to setup the ubuntu session properly | |
if [ ! -e /etc/xrdp/startubuntu.sh ]; then | |
cat >> /etc/xrdp/startubuntu.sh << EOF | |
#!/bin/sh | |
export GNOME_SHELL_SESSION_MODE=ubuntu | |
export XDG_CURRENT_DESKTOP=ubuntu:GNOME | |
exec /etc/xrdp/startwm.sh | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
GROUP_ID='4940528' | |
ACCESS_TOKEN='*************' | |
END_POINT_URL='https://gitlab.com/api/v4/' | |
HEADERS={ | |
'Private-Token': ACCESS_TOKEN | |
} | |
projects_table = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for node in worker1 worker2; do | |
echo =================== $node ===================== | |
scp /opt/hoge/* $node:/opt/hoge/; | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import pandas as pd | |
import matplotlib as mpl | |
from mpl_toolkits.mplot3d import Axes3D | |
import numpy as np | |
import matplotlib.pyplot as plt | |
filename = sys.argv[1] | |
df = pd.read_csv(filename) | |
dt = 0.05 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
filename = sys.argv[1] | |
df = pd.read_csv(filename) | |
dt = 0.5 | |
i = np.arange(0,len(df)*dt,dt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import pandas as pd | |
import matplotlib as mpl | |
from mpl_toolkits.mplot3d import Axes3D | |
import numpy as np | |
import matplotlib.pyplot as plt | |
filename = sys.argv[1] | |
data = pd.read_csv(filename) | |
mpl.rcParams['legend.fontsize'] = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IMAGE=$1 | |
start_time=`date +%s%N` | |
OUTPUT=`./runner.out ${IMAGE}` | |
end_time=`date +%s%N` | |
run_time=`echo "scale=3; (${end_time} - ${start_time})/1000000000" | bc` | |
echo "${OUTPUT},${run_time}sec" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEAM1=TEAMHOGEHOGE | |
TEAM2=hufateam | |
TEAM3=HELLOTEAM | |
TEAM4=TEAM4 | |
TEAM5=TEAMFive | |
TEAM6=KEIO6 | |
TEAM1PI=pi@192.168.10.1 | |
TEAM2PI=pi@192.168.10.2 | |
TEAM3PI=pi@193.168.10.3 | |
TEAM4PI=pi@194.168.10.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import os.path | |
import subprocess | |
import time | |
import argparse | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser(description='Local debug tool for competitive programing.') | |
parser.add_argument('src', help='Sourcecode file') |
NewerOlder