Skip to content

Instantly share code, notes, and snippets.

View gusugusu1018's full-sized avatar

gusugusu1018 gusugusu1018

  • Japan
  • 19:21 (UTC +09:00)
View GitHub Profile
#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 {
#!/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
import requests
import json
GROUP_ID='4940528'
ACCESS_TOKEN='*************'
END_POINT_URL='https://gitlab.com/api/v4/'
HEADERS={
'Private-Token': ACCESS_TOKEN
}
projects_table = {}
#!/bin/bash
for node in worker1 worker2; do
echo =================== $node =====================
scp /opt/hoge/* $node:/opt/hoge/;
done
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
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)
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
#!/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"
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
#!/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')