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
| <!-- | |
| http://www.json.org/java/index.html から入手した java ソースをコードを json.jar にする build.xml | |
| --> | |
| <project default="jar"> | |
| <target name="init"> | |
| <property name="build.jar" value="json.jar"/> | |
| <property name="build.src" value="./src"/> | |
| <property name="build.dest" value="./bin"/> |
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
| // | |
| // hsqldb に groovySql からアクセスその1(初期化) | |
| // | |
| import groovy.sql.Sql | |
| def sql = Sql.newInstance("jdbc:hsqldb:file:fileDb", "sa", "") | |
| sql.execute('create table word(id varchar(255),name varchar(255))') |
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
| // | |
| // hsqldb に groovySql からアクセスその2(内容の取り出し) | |
| // | |
| import groovy.sql.Sql | |
| def sql = Sql.newInstance("jdbc:hsqldb:file:fileDb", "sa", "") | |
| sql.eachRow("select * from word"){ row -> println row.name } | |
| sql.close() |
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
| // | |
| // アタリ画像の作成 | |
| // | |
| // ソース中の | |
| // outf と mysize を直接書き換えて、出力ファイル名とあたり画像サイズを調整 | |
| // | |
| import java.io.* | |
| import java.awt.* | |
| import java.awt.image.* |
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文書の改行・インデント・余分なスペースを削除 | |
| // jdom.jar が必要 | |
| // | |
| @Grapes( | |
| @Grab(group='org.jdom', module='jdom', version='1.1') | |
| ) | |
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文書に改行・インデントを追加して読みやすくする | |
| // | |
| @Grab(group='org.jdom', module='jdom', version='1.1') | |
| import org.jdom.* | |
| import org.jdom.input.* | |
| import org.jdom.output.* |
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
| // | |
| // java.util.Calendar を文字列に変換. | |
| // | |
| class CalendarFormatter { | |
| def cal | |
| def CalendarFormatter( Calendar cal ){ | |
| this.cal = cal | |
| } |
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"?> | |
| <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" | |
| layout="absolute" historyManagementEnabled="false" | |
| backgroundColor="#FFFFFF" backgroundAlpha="1.0" | |
| alpha="1.0" width="430" height="119"> | |
| <mx:Script> | |
| <![CDATA[ | |
| import com.adobe.csawlib.indesign.InDesign; | |
| import com.adobe.indesign.Document; |
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 com.google.api.translate.* | |
| LANG_SRC =Language.JAPANESE | |
| LANG_DEST =Language.ENGLISH | |
| //LANG_DEST =Language.FRENCH | |
| //LANG_DEST =Language.GERMAN | |
| //LANG_DEST =Language.CHINESE_SIMPLIFIED | |