置換したい列を headers から探して,headers の行番号(元データの列番号-1)を入力する. replacelist には配列を入れて,[0] に挿入先,[1] に追加データの位置を指定する.
前から順に実行するので,ある行番号で表されるものを追加データとして指定した後に挿入先として指定すると不具合が発生してしまう.
ex: 1, 3, 5 をひとつにまとめるとき, NG: [[1, 3], [3, 5]] OK: [[1, 3], [1, 5]]
// ==UserScript== | |
// @name gakujo 2FA automator | |
// @namespace http://tampermonkey.net/ | |
// @version 2025-06-20 | |
// @description 学務情報システムの2段階認証を自動化 | |
// @author You | |
// @match https://gakujo.iess.niigata-u.ac.jp/campusweb/campusportal.do* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=niigata-u.ac.jp | |
// @grant none | |
// ==/UserScript== |
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
dbus-send --print-reply=literal --session --dest=org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.CurrentInputMethod |
NAME = reversi | |
TARGET = $(NAME).exe | |
SRCS = cpu.c hashmap.c mapio.c mapmanager.c tools.c $(NAME).c | |
OBJS = $(SRCS:.c=.o) | |
CC = gcc | |
CFLAGS = -Wall -O3 -march=native | |
RM = del /F /Q | |
all: $(TARGET) |
#!/usr/bin/python3 | |
import board | |
from adafruit_bme280 import basic as bme280 | |
import requests | |
def get_defaultpressure(): | |
return 1013.25 | |
url = 'https://api.openweathermap.org/data/2.5/weather' | |
payload = {'lat': '37.432713', |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import subprocess | |
from xkeysnail.transform import * | |
# something remap | |
def is_enable_ime(_): | |
command = "sudo -u ${USER} DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/${UID}/bus' dbus-send --print-reply=literal --session --dest=org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.CurrentInputMethod" |
/Program Files (x86)/ASUS/GPU\ TweakII/Win7/IOMap64.sys | |
/Program Files (x86)/ASUS/GPU\ TweakII/IOMap64.sys | |
/Windows/System32/drivers/IOMap64.sys |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) { | |
int min, max, temp; | |
char buf[255], err=0; | |
printf("最低温度: "); | |
if (fgets(buf, sizeof(buf), stdin) != NULL) { | |
min = atoi(buf); |