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
| 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
| <?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 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
| /* | |
| * tp は Executors.newCachedThreadPool 等を使って生成 | |
| */ | |
| // Rhino(JavaScript) | |
| tp.submit(new Callable({call: function(){ return 1;}})); | |
| // Groovy | |
| tp.submit({1} as Callable) |
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
| using UnityEngine; | |
| using System.Collections; | |
| public class ScreenRecorder : MonoBehaviour | |
| { | |
| public int framerate = 30; | |
| public int superSize; | |
| public bool autoRecord; | |
| int frameCount; |
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
| public interface IRtdClient | |
| { | |
| object GetValue(params object[] args); | |
| } | |
| public class RtdClient : IRtdClient | |
| { | |
| readonly string _rtdProgId; | |
| static IRtdServer _rtdServer; |
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
| using System; | |
| using System.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| //Interfaces for working with excel | |
| //this file allows me to not have a reference to excel in the project | |
| //Adding a reference is to a specific version, these interfaces apply to all | |
| //see Kenny Ker's blog http://weblogs.asp.net/kennykerr/archive/2008/12/16/Rtd7.aspx |
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.util.Random; | |
| import sun.misc.Unsafe; | |
| import sun.nio.ch.DirectBuffer; | |
| import java.lang.reflect.Field; | |
| import java.nio.ByteBuffer; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; |