Skip to content

Instantly share code, notes, and snippets.

Yukihiro "Matz" Matsumoto matz

Block or report user

Report or block matz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@matz
matz / gist:0cb6b7374d7fdc8f5dc50b3fb4aad059
Created Aug 7, 2019
mruby-require mruby 2.x 用パッチ
View gist:0cb6b7374d7fdc8f5dc50b3fb4aad059
diff --git a/src/mrb_require.c b/src/mrb_require.c
index a14a497..41bf951 100644
--- a/src/mrb_require.c
+++ b/src/mrb_require.c
@@ -33,6 +33,15 @@
#include <dlfcn.h>
#endif
+#ifndef RSTRING_CSTR
+static const char*
@matz
matz / btree.rb
Last active Dec 29, 2015
どこかでみかけたHaskell版から翻訳してみた。Haskellの方がコンパクト。あと型チェックはないよね。
View btree.rb
class Leaf
def initialize(n)
@value = n
end
def value
@value
end
def size
1
end
@matz
matz / list of old ruby tar balls
Created May 31, 2013
私のPCにあった過去のRubyのtarballのリスト
View list of old ruby tar balls
ruby-1.0-970819.tar.gz
ruby-1.0-970820.tar.gz
ruby-1.0-970821.tar.gz
ruby-1.0-970903.tar.gz
ruby-1.0-970908.tar.gz
ruby-1.0-970909.tar.gz
ruby-1.0-970910.tar.gz
ruby-1.0-970911.tar.gz
ruby-1.0-970919.tar.gz
ruby-1.0-970930.tar.gz
@matz
matz / de.yml
Created Oct 18, 2012 — forked from newstler/de.yml
#iOSonRailsConf 2013 web site translations
View de.yml
##############################
##############################
robot_in_the_cloak: "Roboter im Regenmantel"
site_title: "#iOSonRailsConf 2013"
site_description: "Alushta Konferenz für Ruby on Rails und iOS-Entwickler aus aller Welt, die im Frühjahr 2013 stattfinden wird."
site_description_short: "Ruby on Rails und iOS-Entwickler Alushta Konferenz 2013."
site_keywords: "Ruby, Rails, ios, Entwickler, Konferenz, 2013, Web, Handy, iphone, ipad, ipod"
@matz
matz / gist:3066997
Created Jul 7, 2012
code to migrate between 2 mrb_state
View gist:3066997
#include "mruby.h"
#include "mruby/string.h"
#include "mruby/array.h"
mrb_value
migrate_simple_value(mrb_state *mrb, mrb_value v, mrb_state *mrb2)
{
mrb_value nv; /* new value */
const char *s;
int len;
You can’t perform that action at this time.