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 javax.script.ScriptEngine; | |
| import javax.script.ScriptEngineManager; | |
| import scala.tools.nsc.interpreter.IMain; | |
| import scala.tools.nsc.settings.MutableSettings.BooleanSetting; | |
| public class ScalaTest { | |
| public static void main(String[] args) throws Exception{ | |
| ScriptEngine engine = new ScriptEngineManager().getEngineByName("scala"); | |
| ((BooleanSetting)(((IMain)engine).settings().usejavacp())).value_$eq(true); |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>fxxk_it_alert</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/bin/osascript</string> | |
| <string>/Users/ozaki/bin/fxxk_it_alert.scpt</string> |
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.collections.*; | |
| import javafx.scene.Scene; | |
| import javafx.stage.Stage; | |
| import javafx.scene.chart.*; | |
| public class PieChartWithCustomColors extends Application { | |
| @Override public void start(Stage stage) { | |
| ObservableList<PieChart.Data> pieChartData = FXCollections.observableArrayList( | |
| new PieChart.Data("Grapefruit", 13), |
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.beans.value.*; | |
| import javafx.geometry.Bounds; | |
| import javafx.geometry.Pos; | |
| import javafx.scene.*; | |
| import javafx.scene.chart.*; | |
| import javafx.scene.control.Label; | |
| import javafx.scene.layout.*; | |
| import javafx.scene.paint.Color; | |
| import javafx.scene.shape.*; |
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
| #! /bin/bash | |
| ################ | |
| # package.sh | |
| # | |
| # Packages java code as a native OS X application | |
| # | |
| # - Fetches source for a Java Swing HelloWorld application from the web | |
| # - Compiles the source | |
| # - Packages the source into a native Mac application |
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
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>org.uiuc</groupId> | |
| <artifactId>cchistory</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <name>CodeCompletionWithHistory</name> | |
| <properties> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
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.collections.*; | |
| import javafx.event.EventHandler; | |
| import javafx.scene.*; | |
| import javafx.scene.chart.*; | |
| import javafx.scene.control.Label; | |
| import javafx.scene.input.MouseEvent; | |
| import javafx.scene.layout.StackPane; | |
| import javafx.scene.paint.Color; | |
| import javafx.stage.Stage; |
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 test; | |
| import java.io.IOException; | |
| import java.util.TreeMap; | |
| import com.fasterxml.jackson.core.*; | |
| import com.fasterxml.jackson.databind.*; | |
| import com.fasterxml.jackson.databind.annotation.*; | |
| import com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer; | |
| import com.fasterxml.jackson.databind.ser.std.StdSerializer; |
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.beans.property.SimpleStringProperty; | |
| import javafx.beans.property.StringProperty; | |
| public class Person { | |
| private StringProperty firstName; | |
| private StringProperty lastName; | |
| public Person(String firstName, String lastName) { | |
| setFirstName(firstName); | |
| setLastName(lastName); |