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
# encoding: utf-8 | |
module Torigoya | |
module Win32 | |
# メモリのコピー | |
# @param [Integer, Object] destination コピー先のアドレス、またはバッファ | |
# @param [Integer, Object] source コピー元のアドレス、またはバッファ | |
# @param [Integer] size コピーする領域のサイズ | |
# @return [void] | |
def self.rtl_move_memory(destination, source, size) |
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
# encoding: utf-8 | |
module Torigoya | |
module PoorXml | |
class Parser | |
# 初期化 | |
# @param [String] raw_doc XMLテキスト | |
def initialize(raw_doc) | |
@raw_doc = raw_doc | |
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
# 128bit Xorshift | |
class Xor128 | |
MASK = 0xffffffff | |
# 初期化 | |
# @param x [Integer] シード1 | |
# @param y [Integer] シード2 | |
# @param z [Integer] シード3 | |
# @param w [Integer] シード4 | |
def initialize(x = 123456789, y = 362436069, z = 521288629, w = 88675123) |
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 | |
rbenv_user = (node[:rtn_rbenv][:system] ? 'root' : node[:rtn_rbenv][:user]) | |
if rbenv_user == 'root' | |
rbenv_root = '/usr/local/rbenv' | |
profile_path = '/etc/profile.d/rbenv.sh' | |
else | |
rbenv_root = "/home/#{rbenv_user}/.rbenv" | |
profile_path = "/home/#{rbenv_user}/.bash_profile" | |
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
#------------------------------------------------------------------------------- | |
# ■ 「[hzm]メモ欄拡張共通部分さん+」オーグメントシステム競合回避スクリプト | |
#------------------------------------------------------------------------------- | |
# 2014/09/27 Ru/むっくRu | |
#------------------------------------------------------------------------------- | |
# オーグメントシステムとの競合を回避し、 | |
# アイテムが初期化された後にアイテム画面を開いた際に | |
# メモ情報を失ってしまうのを回避します。 | |
# | |
# このスクリプトは |
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
#!/bin/bash | |
# GitHubの公開鍵をSSH認証用の鍵として登録する子 | |
AUTHORIZED_KEYS_FILE="$HOME/.ssh/authorized_keys" | |
if [ -z $GITHUB_ACCOUNT ]; then | |
GITHUB_ACCOUNT='rutan' | |
fi | |
# 認証鍵の登録 |
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 RGSS3 | |
#------------------------------------------------------------------------------- | |
# 2013/09/21 Ru/むっくRu | |
#=============================================================================== | |
class Window_Message < Window_Base | |
#----------------------------------------------------------------------------- | |
# ● ウィンドウ位置の更新(再定義) | |
#----------------------------------------------------------------------------- |
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 | |
#=============================================================================== | |
# ■ 音量変更スクリプトさん for RGSS2(超暫定パック) | |
#------------------------------------------------------------------------------- | |
# 2013/09/21 Ru/むっくRu | |
#------------------------------------------------------------------------------- | |
# 【注意】 | |
# RGSS3用の音量変更スクリプトをRGSS2で動くようにごにょごにょしたものです。 | |
# 基本的に動作については一切の保証をしません。 | |
#------------------------------------------------------------------------------- |
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 | |
#=============================================================================== | |
# ■ Tweenアニメーションさん for RGSS3 | |
#------------------------------------------------------------------------------- | |
# 2013/05/11 Ru/むっくRu | |
#------------------------------------------------------------------------------- | |
# FlashなどではおなじみのTweenアニメーションを扱う機能をRGSS3に追加します。 | |
# 指定したプロパティを指定時間で変化させることが可能になります。 | |
# 詳細は解説記事をどうぞ。 | |
#------------------------------------------------------------------------------- |
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 | |
#=============================================================================== | |
# ■ HZM_VXAベースショートコマンドさん for RGSS3 | |
# ※ このスクリプトは「HZM_VXAベーススクリプトさん for RGSS3」が必要です | |
#------------------------------------------------------------------------------- | |
# 2012/01/07 Ru/むっくRu | |
#------------------------------------------------------------------------------- | |
# ベーススクリプトで追加される一部の機能を, | |
# 短い命令で行えるようにするスクリプトです. | |
# ※以下のスクリプトと同等の機能を提供します |