This file contains 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
# See http://roo.rubyforge.org/rdoc/index.html | |
# roo: This gem allows you to access the content of | |
# Open-office spreadsheets (.ods) | |
# Excel spreadsheets (.xls) | |
# Google (online) spreadsheets | |
# Excel’s new file format .xlsx | |
require 'rubygems' | |
# require 'roo' # なぜかエラーになるので... | |
require '\ruby\Ruby187\lib\ruby\gems\1.8\gems\roo-1.10.1\lib\roo.rb' |
This file contains 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 katoy; | |
public class Division { | |
private double numerator, denominator; | |
public void setNumerator(double numerator) {this.numerator = numerator;} | |
public void setDenominator(double denominator) {this.denominator = denominator;} | |
public double quotient() {return numerator/denominator;} | |
} |
This file contains 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
-*- coding: utf-8 -*- | |
# See | |
# | |
# $ jruby -S gem install jruby-pi | |
# $ jruby reader.rb Book1.xslx | |
# | |
# Env: | |
# jruby: 1.6.8 | |
# jruby-poi: 0.8.2 |
This file contains 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
dnode = require 'dnode' | |
sync = require 'synchronize' | |
# コマンドをリモートで実行する | |
dnode.connect 5050, (remote, conn) -> | |
# 非同期で 5 つのコマンドを実行する | |
remote.zing '/bin/sh -c \"date \'+TIME: %H:%M:%S\'\"', (err, stdout, stderr) -> | |
console.log "err: #{err}" if err | |
console.log "stdout:[\n#{stdout}]" if stdout |
This file contains 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
# ファイル解凍するコマンドラインアプリケーション。 | |
unzip = require 'unzip' | |
fs = require 'fs' | |
fstream = require 'fstream' | |
mkdirp = require 'mkdirp' | |
usage = 'usage: $ coffee unzip.coffee zipfile [out_dir]' | |
file = null |
This file contains 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
これはテストデータです。 |
This file contains 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
actate = require 'lactate' | |
express = require 'express' | |
root_dir = __dirname | |
port = 8080 | |
options = debug: true | |
app = express() | |
app.use lactate.static(root_dir) |
This file contains 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
async = require("async") | |
dnode = require("dnode") | |
util = require("util") | |
port = 7070 | |
remote = null | |
conn = null | |
tasks = [] | |
tasks.push (callback) -> |