This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package javaapplication3; | |
/** | |
* | |
* @author naoki | |
*/ | |
public class JavaApplication3 { | |
/** | |
* @param args the command line arguments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "private_network", ip: "126.0.56.105" | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"] | |
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
add-apt-repository ppa:openjdk-r/ppa | |
apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sample.assertabout; | |
import java.util.function.Function; | |
public class AssertF<T> { | |
static class AssertException extends RuntimeException { | |
public AssertException(String message) { | |
super(message); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mul3 macro | |
ld b, a | |
add a, a | |
add a, b | |
endm | |
mul6 macro | |
add a, a | |
ld b, a | |
add a, a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MUL3 MACRO | |
LD B, A | |
ADD A, A | |
ADD A, B | |
ENDM | |
MUL6 MACRO | |
ADD A, A | |
MUL3 | |
ENDM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Microsoft App Studio generated resource script. | |
// | |
// #include "resource.h" | |
#define APSTUDIO_READONLY_SYMBOLS | |
///////////////////////////////////////////////////////////////////////// | |
// | |
// Generated from the TEXTINCLUDE 2 resource. | |
// | |
#include "afxres.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2017 Naoki Kishida ([email protected] / twitter: @kis) | |
This software is released under the MIT License. | |
( https://github.com/kishida/smallpt4j/blob/master/LICENSE.txt ) | |
This is based on the smallpt( http://www.kevinbeason.com/smallpt/ ) | |
that is released under the MIT License. | |
( https://github.com/kishida/smallpt4j/blob/master/smallpt_LICENSE.txt ) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.BorderLayout; | |
import javax.swing.JButton; | |
import javax.swing.JFrame; | |
import javax.swing.JTextArea; | |
public class MyFrame { | |
public static void main(String[] args) { | |
JFrame f = new JFrame("test"); | |
JTextArea ta = new JTextArea(); | |
f.add(ta); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kis.sample; | |
import java.awt.BorderLayout; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.util.List; | |
import javax.swing.JButton; | |
import javax.swing.JFileChooser; | |
import javax.swing.JFrame; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kis.loom; | |
import java.awt.Color; | |
import java.awt.image.BufferedImage; | |
import javax.swing.ImageIcon; | |
import javax.swing.JFrame; | |
import javax.swing.JLabel; | |
/** | |
* need Project Loom |