View test.php
<?php | |
$x1=range(1,3); | |
$y1=range(1,3); | |
$x2=range(1,3); | |
$y2=range(1,3); | |
condition:ne($y1,$y2); | |
$ans=maple("x-($x1)=(($x2)-($x1))/(($y2)-($y1))*(y-($y1))"); | |
$ansdisp=maple("print(MathML[ExportPresentation]($ans))"); | |
$grade=maple("proc(A,R) evalb(simplify(solve(A,x)-solve(R,x))=0) end proc;"); | |
$ansplot=plotmaple("plot([solve($ans,x),y,y=-3..3],labels=[x,y])"); |
View polynomialdivision.mapleta
$a1=range(-3,3); | |
$b1=range(-3,3); | |
$b2=range(-3,3); | |
: no japanese comments | |
: avoid $b2 being zero. ne=not equal | |
condition:ne($b2,0); | |
$p1=maple("x^2+($a1)*x+($b1)"); | |
$p2=maple("x+($b2)"); | |
$ans1=maple("expand(($p1)*($p2),x)"); | |
$ans2=maple("quo(($p1),($p2),x)"); |
View mkdirfb.py
#!/opt/local/bin/python | |
# mkdirfb.py | |
# make directories to be zipped for feedback files | |
# from offline grading worksheet | |
# of Assignment activity in Moodle | |
# Usage: cat offlinegradingworksheet.csv | python mkdirfb.py | |
# Saburo Higuchi | |
# Time-stamp "2017-08-02 Wed 16:47 JST hig" |
View distpdf.py
# distpdf.py inname outname period start end docopy | |
# 0 =< start, end < periodb | |
# Example: distpdf.py in out 3 1 2 0 | |
import sys | |
import os | |
import shutil | |
import re | |
markdir="./" |
View distpdf.bat
@setlocal enabledelayedexpansion | |
rem 1人当たりのページ数 | |
set delta=5 | |
rem 1人目の開始ページ番号(1ページから数える) | |
set s=1 | |
rem 1人目の終了ページ番号(1ページから数える) | |
set e=4 | |
rem 全員分まとめたPDFファイルのファイル名 | |
set source=report_all.pdf | |
rem 配布するPDFファイルのファイル名(全員共通) |
View feedback.xml
<?xml version="1.0" encoding="UTF-8" ?> | |
<FEEDBACK VERSION="200701" COMMENT="XML-Importfile for mod/feedback"> | |
<ITEMS> | |
<ITEM TYPE="label" REQUIRED="0"> | |
<ITEMID> | |
<![CDATA[2212]]> | |
</ITEMID> | |
<ITEMTEXT> | |
<![CDATA[label]]> |
View course_200867_survey_249766.mht
From: <MHT Writer> | |
Subject: =?UTF-8?Q?=E5=AD=A6=E7=94=9F=E3=81=AB=E3=82=88=E3=82=8B=E5=AD=A6=E6=9C=9F=E5=8D=8A=E3=81=B0=E3=81=AE=E6=8E=88=E6=A5=AD=E3=82=A2=E3=83=B3=E3=82=B1=E3=83=BC=E3=83=88A?= | |
Date: Fri, 20 May 2016 03:51:46 GMT | |
MIME-Version: 1.0 | |
Content-Type: multipart/related; | |
boundary="----=_NextPart_000_0000_C9DD2AC65.4B6EB3798"; | |
type="text/html" | |
This is a multi-part message in MIME format. |
View course_200867_survey_249771.mht
From: <MHT Writer> | |
Subject: =?UTF-8?Q?=E5=AD=A6=E7=94=9F=E3=81=AB=E3=82=88=E3=82=8B=E5=AD=A6=E6=9C=9F=E5=8D=8A=E3=81=B0=E3=81=AE=E6=8E=88=E6=A5=AD=E3=82=A2=E3=83=B3=E3=82=B1=E3=83=BC=E3=83=88B?= | |
Date: Fri, 20 May 2016 03:53:18 GMT | |
MIME-Version: 1.0 | |
Content-Type: multipart/related; | |
boundary="----=_NextPart_000_0000_DD2AC654B.6EB37980D"; | |
type="text/html" | |
This is a multi-part message in MIME format. |
View course_999999_survey_999999.mht
From: <MHT Writer> | |
Subject: =?UTF-8?Q?=E5=AD=A6=E7=94=9F=E3=81=AB=E3=82=88=E3=82=8B=E5=AD=A6=E6=9C=9F=E5=88=9D=E3=82=81=E3=81=AE=E6=8E=88=E6=A5=AD=E3=82=A2=E3=83=B3=E3=82=B1=E3=83=BC=E3=83=88?= | |
Date: Sun, 19 Apr 2015 09:02:01 GMT | |
MIME-Version: 1.0 | |
Content-Type: multipart/related; | |
boundary="----=_NextPart_000_0000_ED52E1D22.A004CDA26"; | |
type="text/html" | |
This is a multi-part message in MIME format. |
View ws-grade-assign-upload.php
<?php | |
// This file is NOT a part of Moodle - http://moodle.org/ | |
// | |
// This client for Moodle 2 is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
// ref. https://gist.github.com/jleyva/9687810 | |
// http://www.slideshare.net/hig3/moodle-bulkgradeimport in Japanese |
NewerOlder