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 | |
require 'rjb' | |
module JavaIterator | |
def each | |
i = self.iterator | |
while i.has_next | |
yield i.next | |
end | |
end | |
end |
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
# for JDK1.7 | |
# export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home | |
# else | |
# export JAVA_HOME= | |
# | |
if ENV['JAVA_HOME'] | |
if File.exist?("#{ENV['JAVA_HOME']}/jre/lib/server/libjvm.dylib") | |
ENV['JVM_LIB'] = "#{ENV['JAVA_HOME']}/jre/lib/server/libjvm.dylib" | |
end | |
end |
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
--- sound.c~ Sun Apr 15 21:46:08 2012 | |
+++ sound.c Sat Oct 13 17:43:16 2012 | |
@@ -1,4 +1,5 @@ | |
#define WINVER 0x0500 /* バージョン定義 Windows2000以上 */ | |
+#define DIRECTSOUND_VERSION 0x0900 | |
#define _WIN32_WINNT WINVER | |
#include "ruby.h" |
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 | |
require "rbconfig" | |
require_relative './ennou.rb' | |
module Rack | |
module Handler | |
class Ennoumu < Ennou |
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
#!/Users/local/bin/ruby | |
# coding: utf-8 | |
require 'fileutils' | |
$user = 'user' | |
$pwd = 'pwd' | |
$server = 'nas-hostname' | |
module MusicBackup | |
def self.to_path(d, f) |
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
@echo off | |
c:\progra~2\RUBY-2~1.0\bin\ruby -x "%~f0" %* | |
@goto endofruby | |
#!C:/PROGRA~2/RUBY-2~1.0/bin/ruby | |
# coding: utf-8 | |
if ARGV.size < 2 | |
exit 1 | |
end | |
def find_pattern(fn, enc, pattern) |
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
=begin | |
Copyright(c) 2008 arton | |
Usage of the works is permitted provided that this instrument is retained | |
with the works, so that any entity that uses the works is notified of this | |
instrument. | |
DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY. |
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: cp932 | |
require 'win32/registry' | |
VAL_NAMES = %w| | |
LayerDriver\ JPN | |
OverrideKeyboardIdentifier | |
OverrideKeyboardSubtype | |
OverrideKeyboardType | |
| |
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
function swichFunc(x, cond) { | |
for (var i = 0; i < cond.length; i++) { | |
if (cond[i].cond(x)) { | |
return cond[i].proc(x); | |
} | |
} | |
} | |
function swichAction(x, cond, continuous) { | |
for (var i = 0; i < cond.length; i++) { | |
if (cond[i].cond(x)) { |
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
c:\Users\arton\Documents\ruby\2.4.0-p>nmake test | |
Microsoft(R) Program Maintenance Utility Version 12.00.21005.1 | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
CC = cl -nologo | |
LD = cl -nologo | |
LDSHARED = cl -nologo -LD | |
CFLAGS = -MD -Zi -W2 -wd4100 -wd4127 -wd4210 -wd4214 -wd4255 -wd4574 -wd4668 -wd4710 -wd4711 -wd4820 -wd4996 -we4028 -we4142 -O2sy- -Zm600 | |
XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-mswin32_120 -I../ruby-2.4.0-preview1/include -I../ruby-2.4.0-preview1 -I../ruby-2.4.0-preview1/missing |