Skip to content

Instantly share code, notes, and snippets.

View yusuke's full-sized avatar

Yusuke Yamamoto yusuke

View GitHub Profile
@yusuke
yusuke / NightBirdFrame.java
Last active July 18, 2022 23:01 — forked from kishida/NightBirdFrame.java
Night Bird
//******************************************************************************
// NightBirdFrame.java: JFrame
// Copyright Kishida Naoki
//******************************************************************************
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.Serial;
import java.io.*;
import java.net.URL;
import java.net.URLConnection;
public class ClientCertificate {
public static void main(String[] args) throws IOException {
System.setProperty("javax.net.ssl.keyStore", "myClientCert.p12");
System.setProperty("javax.net.ssl.keyStorePassword", "mypassword");
final URLConnection urlConnection = new URL("https://bizstn.bk.mufg.jp/biz/yen/dfw/Login").openConnection();
try (InputStream is = urlConnection.getInputStream()) {
/*
Copyright 2020 Samuraism Inc.
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 to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
/*
Copyright 2020 Samuraism Inc.
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 to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
感想などは: #jjug
質問はタグ2つ: #jjug #q
ここにざっくり日本語訳を表示します。
こんにちは。ここにお招き頂きありがとうございます。
ゆーすけアレンジありがとう
東京、日本に来るの初めてです。
またきたい!
いつでもさえぎって質問していいですよ
@yusuke
yusuke / Android Studio30分集中超絶技巧100選メモ DroidKaigi 2018 #DroidKaigi #DroidKaigi_room3
Created February 9, 2018 02:10
Android Studio30分集中超絶技巧100選メモ DroidKaigi 2018 #DroidKaigi #DroidKaigi_room3
Android Studio30分集中超絶技巧100選 DroidKaigi 2018
山本 ユウスケ @yusuke
マウス、トラックパッドを使うのはやめましょう
今日は以下のキーマップの話です
Mac OSX: Mac OSX 10.5+
Windows/Linux: Default
他のキーマップだとQiitaやドキュメント、ブログなどを見る際に苦労します。
設定画面 Cmd + , (Ctrl + Alt + S)
プロジェクト設定画面 Cmd + ;
File > Power Save Modeでバッテリー節約
#include <Arduino.h>
#include "esp_system.h"
#include <WiFi.h>
#include <WiFiMulti.h>
#include <HTTPClient.h>
#define USE_SERIAL Serial
WiFiMulti wifiMulti;
HTTPClient http;
int area = 123;
package samuraism.core.logging;
import org.slf4j.Logger;
public final class LoggerFactory {
private LoggerFactory() {
}
public static Logger getLogger() {
return org.slf4j.LoggerFactory.getLogger(new Throwable().getStackTrace()[1].getClassName());
@yusuke
yusuke / Main.java
Last active September 25, 2017 08:03
public class Main {
public static void main(String[] args) {
System.out.println("Hello GitHub");
for (int i = 0; i < 100; i++) {
System.out.println(i);
}
}
}
/*
* Copyright 2015 Yusuke Yamamoto
*
* Licensed under the Apache License,Version2.0(the"License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,software