Skip to content

Instantly share code, notes, and snippets.

donchan922 donchan922

Block or report user

Report or block donchan922

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tigers_dash_button.py
import requests
from bs4 import BeautifulSoup
import re
from bottle import route, run
# 試合速報メッセージ作成
def createReportMessage():
# 阪神の試合速報結果URL
target_url = 'https://m.hanshintigers.jp/game/score/'
# 上記URLに対するGET
View mac-eclipse-install-env.sh
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.6
BuildVersion: 17G65
View DentakuResult.sh
$ javac Dentaku.java
$ java Dentaku 1 + 2
3
$ java Dentaku 3 - 3.3
-0.3
$ java Dentaku 7 '*' 9
63
$ java Dentaku 1 / 3
0.33
View 【pom.xml】利用するライブラリ情報の書き方.xml
<dependencies>
<dependency>
<groupId>グループId</groupId>
<artifactId>アーティファクトId</artifactId>
<version>バージョン</version>
</dependency>
</dependencies>
View 【pom.xml】初期状態.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>maven-test</artifactId>
<version>0.0.1-SNAPSHOT</version>
</project>
View FeedReader.java
import java.net.URL;
// JavaのRSSライブラリ「ROME」をインポートする
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;
public class FeedReader {
public static void main(String[] args) {
try {
@donchan922
donchan922 / pom.xml
Last active Aug 18, 2018
JavaのRSSライブラリ「ROME」のMaven Repository
View pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>maven-test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>rome</groupId>
<artifactId>rome</artifactId>
<version>1.0</version>
@donchan922
donchan922 / pom.xml
Created Aug 19, 2018
MavenでJDKのバージョンを指定する方法-その1
View pom.xml
<project>
[...]
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
[...]
</project>
@donchan922
donchan922 / pom.xml
Created Aug 19, 2018
MavenでJDKのバージョンを指定する方法-その2
View pom.xml
<project>
[...]
<build>
[...]
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
You can’t perform that action at this time.