Skip to content

Instantly share code, notes, and snippets.

View naokirin's full-sized avatar

naokirin(Naoki Hayashida) naokirin

View GitHub Profile
@naokirin
naokirin / SwingHelloWorld.java
Created January 18, 2012 18:59
Swing Hello,World
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JLabel;
public class SwingHelloWorld extends JFrame{
public static void main(String[] args){
SwingHelloWorld frame = new SwingHelloWorld("Hello");
frame.setVisible(true);
}
@naokirin
naokirin / JavaFXHelloWorld.java
Created January 18, 2012 19:28
JavaFX Hello,World
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.HBox;
import javafx.scene.control.Label;
public class JavaFXHelloWorld extends Application{
public static void main(String[] args){
Application.launch(JavaFXHelloWorld.class, args);
}
@naokirin
naokirin / JavaFXMemo.java
Created February 4, 2012 18:39
JavaFXMemo01
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.scene.control.TextArea;
import javafx.scene.control.Button;
import javafx.scene.layout.HBox;
public class JavaFXMemo extends Application {
@naokirin
naokirin / JavaFXMemo.java
Created February 4, 2012 20:43
JavaFXMemo02
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.scene.control.TextArea;
import javafx.scene.control.Button;
import javafx.scene.layout.HBox;
public class JavaFXMemo extends Application {
@naokirin
naokirin / JavaFXMemo.java
Created April 15, 2012 02:30
JavaFXMemo03
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.scene.control.TextArea;
import javafx.scene.control.Button;
import javafx.scene.layout.HBox;
@naokirin
naokirin / JavaFXMemo.java
Created April 15, 2012 02:45
JavaFXMemo04
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.scene.control.TextArea;
import javafx.scene.control.Button;
import javafx.scene.layout.HBox;
@naokirin
naokirin / JavaFXMemo.java
Created April 15, 2012 03:37
JavaFXMemo05
import javafx.application.Application;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.scene.control.TextArea;
import javafx.scene.control.Button;
@naokirin
naokirin / oCamlet.ml
Created August 3, 2012 10:31
OCamlet (OCaml toy testing framework)
module Result = OCamlet_test_result
module Unit_test = OCamlet_test
include Unit_test.Test_poly
include Unit_test.Test_exn
let run_test_case c =
let open Result in
let result_unit x y =
" Vi互換オフ
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
#!/bin/bash
# require package : inotify-tools
exclude=(--exclude \~ --exclude \.swp --exclude \.git/)
events=(-e CREATE -e MODIFY -e MOVED_TO -e DELETE)
if [ $# -eq 0 ]; then
echo 'start polling'