過去問と回答が大学Webサービスからダウンロードできるが、学期ごとに全部バラバラで非常に管理がしにくいので、科目ごとに結合して1つのPDFとして扱えるようにする。
適当なディレクトリに必要な科目の過去問と回答をダウンロードして保存する。自分は2期分を保存した。
#!/bin/sh | |
# | |
# Copyright 2017 haruo31 <haruo31@underthetree.jp> | |
# Original by 2014 Wenva <lvyexuwenfa100@126.com> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is furnished |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.Reader; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
/** | |
* ProcessBroker pb = new ProcessBroker("ps -ef | grep java".split(" ")); |
Option Explicit | |
Sub breakUpMergedCells() | |
Dim curSheet As Worksheet | |
Dim eCell As Range, curRange As Range | |
Dim curAddr As String | |
Dim fillCell As Range | |
Dim filledValue As String | |
Set curSheet = ActiveSheet |
// ==UserScript== | |
// @name AliExpress order collector | |
// @version 1 | |
// @include https://trade.aliexpress.com/orderList.htm* | |
// ==/UserScript== | |
function run() { | |
var elem = document.querySelector('.me-menu-body').appendChild(document.createElement('textarea')); | |
elem.value = (JSON.stringify( | |
Array.prototype.slice.call(document.querySelectorAll('.order-item-wraper')) |
$ jshell
| Welcome to JShell -- Version 12
| For an introduction type: /help intro
jshell> /set feedback verbose
| Feedback mode: verbose
jshell> var v = "AAA"
diskutil list -plist | | |
xidel --data=- --extract "//*/string[.='CD_partition_scheme']/../*" | | |
awk 'NR % 2 == 1 { printf "%s\t", $0; } NR % 2 == 0 { print $0; }' | | |
IFS=$'\t' while read key value; do | |
case "$key" in | |
"DeviceIdentifier") | |
DEVICE=/dev/${value} | |
;; | |
"VolumeName") | |
VOLNAME="${value}" |
FROM perl:5.10 | |
ENV PERL_MM_USE_DEFAULT 1 | |
ENV PERL_EXTUTILS_AUTOINSTALL --defaultdeps | |
RUN perl -MCPAN -e "install Perl::LanguageServer" | |
WORKDIR / |
$fs = 0.1; | |
$fa = 3; | |
module sleeve(d=3, h=1, t=1) { | |
difference() { | |
cylinder(d=d, h); | |
cylinder(d=d-t*2, h); | |
} | |
} |