2014-05-01から1ヶ月間の記事一覧

jrunscript+Rhinoでスレッド

jjs

メモ。 function thread(func){ var th = new java.lang.Thread(func); th.start(); return th; } var th = thread(function(){ // ... });

jrunscript+RhinoでSqlite3に接続(JDBC)

foo/data.sqlite3 がまだ作られてない状態で $ sqlite3 foo/data.sqlite3 Sqlite3のコンソールで操作: create table people (id ,name); insert into people values (1, 'Athos'); insert into people values (2, 'Aramis'); insert into people values (3, …