Skip to content

Instantly share code, notes, and snippets.

@orekyuu
orekyuu / JavaBeamBuilder.java
Created June 3, 2015 15:37
JavaビームAPI
package net.orekyuu.javatter.api.twitter.beam;
import net.orekyuu.javatter.api.twitter.TwitterUser;
public interface JavaBeamBuilder {
JavaBeamBuilder javaBeamUpperCase();
JavaBeamBuilder setBiPattern(BiGenerator biGenerator);
@orekyuu
orekyuu / src_Main.java
Created July 14, 2015 15:16
引数のチェックとかやってないけどそのへんは許して
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class Main {
public static void main(String[] args) {
System.setProperty("debug", "true");
ExecutorService service = Executors.newFixedThreadPool(4);
Util util = new Util(2);
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.text.*?>
<?import java.lang.*?>
<?import javafx.scene.layout.*?>
<GridPane xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8.0.40">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
</columnConstraints>
@orekyuu
orekyuu / Main.java
Created July 21, 2015 16:26
逮捕
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
try {
while (true) {
String chinko = scanner.next();
if (chinko.equals("ちんこ")) {
System.out.println("まんこ");
@orekyuu
orekyuu / skin.css
Created July 24, 2015 16:14
ListViewの背景画像
.list-cell {
-fx-background-color: rgba(255,255,255,0.7);
}
.list-view {
-fx-background-image: url("/back.png");
-fx-background-repeat: repeat;
-fx-background-position: center center;
}
@orekyuu
orekyuu / ExamplePlugin.java
Created July 26, 2015 10:50
女装プラグインっぽいなにか
package net.orekyuu.example;
import net.orekyuu.javatter.api.plugin.OnPostInit;
import net.orekyuu.javatter.api.service.TwitterUserService;
import javax.inject.Inject;
public class ExamplePlugin {
@Inject
package net.orekyuu.demo;
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.concurrent.Worker;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
package net.orekyuu.updatename;
import net.orekyuu.javatter.api.twitter.TwitterUser;
import net.orekyuu.javatter.api.twitter.model.Tweet;
public class MessageUtil {
public static final String NEW_NAME = "${NEW_NAME}";
public static final String OLD_NAME = "${OLD_NAME}";
public static final String SENDER_SN = "${SENDER_SN}";
@orekyuu
orekyuu / gist:4d2d8de75c0551ea2cb0
Created September 26, 2015 03:54
Groovyでプラグインを書くためのbuild.gradle
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'groovy'
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava, compileTestJava].each {
it.options.encoding = 'UTF-8'
@orekyuu
orekyuu / ScalaDemoPlugin_build.gradle
Created September 26, 2015 04:52
Scalaですらw
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'scala'
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava, compileTestJava].each {
it.options.encoding = 'UTF-8'
}