ITHOME 鐵人賽 :: 主題競賽組觀戰區
目前這份資料是用年久失修的爬蟲在跑的,新版網址如下:
https://ithome-2021-ironman.s3.ap-northeast-1.amazonaws.com/index.html
ITHOME 鐵人賽 :: 主題競賽組觀戰區
目前這份資料是用年久失修的爬蟲在跑的,新版網址如下:
https://ithome-2021-ironman.s3.ap-northeast-1.amazonaws.com/index.html
import collections | |
import re | |
import urllib | |
from urllib.request import Request | |
_s1 = r""" | |
curl 'https://irs.thsrc.com.tw/IMINT/captImg/foobar.jpg' \ | |
-H 'Connection: keep-alive' \ | |
-H 'Pragma: no-cache' \ | |
-H 'Cache-Control: no-cache' \ |
task copyDepends { | |
doLast { | |
configurations.implementation.canBeResolved = true | |
configurations.implementation.each { | |
def suffix = it.absolutePath.split("/")[-5..-1] | |
def (group, artifact, version) = suffix[-5..-3] | |
def basePath = (it.absolutePath - suffix.join("/")) + suffix[-5..-3].join("/") | |
copy { | |
from fileTree(basePath).files | |
into "build/localMavenRepo/$group/$artifact/$version" |
qty:glab qrtt1$ cat ab
qty:glab qrtt1$ cat build.gradle
task abc {
doLast {
for (StackTraceElement e : Thread.currentThread().getStackTrace()) {
System.out.println(e);
}
}
先熟悉 anki 的操作,並匯出 apkg 及稍為研究一下文件 http://decks.wikia.com/wiki/Anki_APKG_format_documentation
基本 java 開發環境 jdk8, eclipse
複習 Java IO 與 JDBC
#!/usr/bin/python | |
DOCUMENTATION = ''' | |
--- | |
module: versioning_copy | |
short_description: Copies the file with datetime versioning name | |
description: | |
- The versioning_copy module copies a file on remote locations. It designed for the tomcat's parallel deploy feature | |
options: | |
war: |
qty:SAMPLE qrtt1$ for i in `find . -name "*.jar"`; do echo $i; unzip -l $i |grep 'org/apache/commons/logging/Log.class'; done | |
./build_SAMPLE/WEB-INF/lib/activation-1.1.jar | |
./build_SAMPLE/WEB-INF/lib/activation.jar | |
./build_SAMPLE/WEB-INF/lib/aws-java-sdk-1.6.3.jar | |
./build_SAMPLE/WEB-INF/lib/awsutils-1.7.17.jar | |
./build_SAMPLE/WEB-INF/lib/axis-1.4.jar | |
./build_SAMPLE/WEB-INF/lib/axis-jaxrpc-1.4.jar | |
./build_SAMPLE/WEB-INF/lib/axis-saaj-1.4.jar | |
./build_SAMPLE/WEB-INF/lib/axis-wsdl4j-1.5.1.jar | |
./build_SAMPLE/WEB-INF/lib/AzureStorageUtils.jar |