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
require 'forwardable' | |
module Forwardable | |
def delegate_to(accessor, *methods, **method_hash) | |
methods.each do|method| | |
def_instance_delegator(accessor, method) | |
end | |
method_hash.each do|method, ali| | |
def_instance_delegator(accessor, method, ali) |
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
require 'forwardable' | |
module Forwardable | |
def delegate_to(accessor, *methods, **method_hash) | |
methods.each do|method| | |
def_instance_delegator(accessor, method) | |
end | |
method_hash.each do|method, ali| | |
def_instance_delegator(accessor, method, ali) |
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
--- a/cygwin/GNUmakefile.in Thu Jan 01 08:38:01 2015 | |
+++ b/cygwin/GNUmakefile.in Mon May 23 01:50:00 2016 | |
@@ -50,11 +50,11 @@ | |
$(LIBRUBY): $(RUBY_EXP) $(LIBRUBY_SO) | |
$(RUBY_EXP) $(LIBRUBY_SO): $(DLL_BASE_NAME).res.@OBJEXT@ | |
-%.res.@OBJEXT@: %.rc | |
+%.res.@OBJEXT@: %.rc %.size | |
$(ECHO) compiling $@ | |
$(Q) $(WINDRES) --include-dir . --include-dir $(<D) --include-dir $(srcdir)/win32 $< $@ |
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
require 'zlib' | |
module Kernel | |
alias require_without_arb require | |
alias require_relative_without_arb require_relative | |
def require(filename) | |
if ArchivedRuby.arb_loaded? | |
return if $LOADED_FEATURES.include?(filename) | |
ArchivedRuby.load_from_arb(filename) |
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
require_relative 'anime_sprite' | |
module DXRuby | |
class Animation < Struct.new(:animation_image, :motions) | |
end | |
module Animative | |
class Motion < Struct.new(:name, :delay, :pattern) |
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
//============================================================================= | |
// NonmaskedWindowOverlay.js | |
//============================================================================= | |
/*: | |
* @plugindesc ウィンドウをマスクせずに重ね合わせられるようにします。 | |
* @author aoitaku | |
* @version 0.0.1 2015/11/15 | |
* | |
* @param nonmaskedScene |
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
diff -uprN a/cygwin/GNUMakefile.in b/cygwin/GNUMakefile.in | |
--- a/cygwin/GNUMakefile.in 2012-11-05 23:00:35 +0900 | |
+++ b/cygwin/GNUMakefile.in 2015-08-24 13:32:16 +0900 | |
@@ -50,11 +50,11 @@ scriptbin: $(SCRIPTPROGRAMS) | |
$(LIBRUBY): $(RUBY_EXP) $(LIBRUBY_SO) | |
$(RUBY_EXP) $(LIBRUBY_SO): $(DLL_BASE_NAME).res.@OBJEXT@ | |
-%.res.@OBJEXT@: %.rc | |
+%.res.@OBJEXT@: %.rc %.size | |
$(ECHO) compiling $@ |
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
# TsukasaParser | |
# | |
# Usage: | |
# gem install parslet するか、 | |
# bundler で Gemfile に gem 'parslet' を書いて | |
# bundle install して bundle exec で利用してください | |
require 'parslet' | |
class TsukasaParser < Parslet::Parser |
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
class Symbol | |
def call(*args, &block) | |
if block | |
-> recv { to_proc.(recv, *args, &block) } | |
else | |
-> recv { to_proc.(recv, *args) } | |
end | |
end | |
end |
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
doctype xml | |
var a = rand | |
if a == 6 | |
then | |
puts "six!" | |
elsif a == 1 | |
then | |
puts "one..." | |
else |