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
| @GrabResolver('http://repo.gradle.org/gradle/libs/') | |
| @Grab('org.gradle:gradle-tooling-api:1.0') | |
| import org.gradle.tooling.GradleConnector | |
| import org.gradle.tooling.ProgressListener | |
| import org.gradle.tooling.model.GradleProject | |
| import org.gradle.tooling.model.GradleTask | |
| import groovy.swing.* | |
| import groovy.ui.SystemOutputInterceptor; | |
| import javax.swing.* | |
| import javax.swing.tree.* |
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 javafx.application.Application | |
| import javafx.event.ActionEvent | |
| import javafx.geometry.Pos | |
| import javafx.scene.Scene | |
| import javafx.scene.control.Button | |
| import javafx.scene.control.Label | |
| import javafx.scene.layout.VBox | |
| import javafx.stage.Stage | |
| import kotlinfx.* |
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
| class UsaMimi { | |
| def kaworiChan = {println 'I love you!'} | |
| def kyon = {Closure closure -> | |
| def map = closure.delegate.properties.collectEntries { | |
| [it.value, it.key] | |
| } | |
| def name = map[closure] | |
| print "${name} " | |
| closure () | |
| } |
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 fumokmm.test.factory; | |
| import java.util.*; | |
| import org.junit.*; | |
| import static org.junit.Assert.*; | |
| import static org.hamcrest.CoreMatchers.*; | |
| public class FactoryTest { | |
| static abstract class Alphabet { |
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 android.content.Context; | |
| import android.graphics.Paint; | |
| import android.util.AttributeSet; | |
| import android.util.TypedValue; | |
| import android.widget.TextView; | |
| /** | |
| * サイズ自動調整TextView | |
| * | |
| */ |
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
| griffon install-plugin http://artifacts.griffon-framework.org/repository/plugins/installer/0.6/griffon-installer-0.6.zip | |
| griffon install-plugin http://artifacts.griffon-framework.org/repository/plugins/swingx-builder/0.6/griffon-swingx-builder-0.6.zip | |
| griffon install-plugin http://artifacts.griffon-framework.org/repository/plugins/dialogs/0.3/griffon-dialogs-0.3.zip | |
| griffon install-plugin http://artifacts.griffon-framework.org/repository/plugins/i18n-support/0.2/griffon-i18n-support-0.2.zip | |
| griffon install-plugin http://artifacts.griffon-framework.org/repository/plugins/miglayout/0.4/griffon-miglayout-0.4.zip | |
| griffon install-plugin http://artifacts.griffon-framework.org/repository/plugins/actions/0.4/griffon-actions-0.4.zip | |
| griffon install-plugin http://artifacts.griffon-framework.org/repository/plugins/jide-builder/0.7/griffon-jide-builder-0.7.zip | |
| griffon install-plugin http://artifacts.griffon-framework.org/repository/plugins/syntaxtext/0.2/griffon-syntaxtext-0.2.zip | |
| griffon install-plugin http://artifacts. |
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
| var gl = new GL.Context( w, h ); | |
| gl.enable( GL.TEXTURE_2D ); | |
| gl.enable( GL.DEPTH_TEST ); | |
| gl.clearColor( 0.0, 0.0, 0.0, 1.0 ); | |
| gl.clearDepth( 1.0 ); | |
| // Load grass texture |
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 static groovyx.gpars.GParsPool.* | |
| withPool(3) { | |
| (1..20).parallel.map { | |
| [ | |
| duo : it % 2 == 0? 1 : 0, | |
| tri : it % 3 == 0? 1 : 0, | |
| cinq : it % 5 == 0? 1 : 0 | |
| ] | |
| }.reduce { a, b -> |
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
| libraryDependencies += "com.github.scala-incubator.io" %% "scala-io-core" % "0.3.0" | |
| libraryDependencies += "com.github.scala-incubator.io" %% "scala-io-file" % "0.3.0" |
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) 2012 tamtam180 | |
| * | |
| * Licensed under the Apache License, Version 2.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 |