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
import java.io._ | |
import java.net._ | |
object Main { | |
trait StreamTypeInferencer[A, B] | |
object StreamTypeInferencer { | |
implicit object InputStreamInputStream | |
extends StreamTypeInferencer[InputStream, InputStream] | |
implicit object InputStreamBufferedInputStream | |
extends StreamTypeInferencer[BufferedInputStream, InputStream] |
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
!!! DON'T APPLY THIS PATCH !!! |
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
object Main { | |
def main(args: Array[String]) { | |
args match { | |
case Array("a", a @ _*) => { } // この行外す or @ _*削る or 下の行と順番を入れ替えるとコンパイル通る | |
case Array("b") => { } // この行外すとコンパイル通る | |
case Array("c", c) => { | |
0 // この行外すとコンパイル通る | |
} | |
} | |
} |
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
diff --git a/proc.c b/proc.c | |
index 299a220..0a98207 100644 | |
--- a/proc.c | |
+++ b/proc.c | |
@@ -418,6 +418,7 @@ proc_new(VALUE klass, int is_lambda) | |
} | |
procval = rb_vm_make_proc(th, block, klass); | |
+ rb_rewrite_dfp_in_errinfo(th, cfp); | |
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
From 834fd3b4936cf26f24f8f6392730a1763fd633b6 Mon Sep 17 00:00:00 2001 | |
From: Kazuki Tsujimoto <[email protected]> | |
Date: Sun, 4 Sep 2011 12:40:56 +0900 | |
Subject: [PATCH] Renamed INSTALL.eucjp to INSTALL.utf-8 | |
--- | |
ChangeLog | 4 ++++ | |
Gauche.spec | 2 +- | |
Makefile.in | 4 ++-- | |
3 files changed, 7 insertions(+), 3 deletions(-) |
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
max = 1 | |
max.times{ | |
Fiber.new{} | |
} | |
max = 1000 | |
@cnt = 0 | |
(1..100).map{|ti| | |
Thread.new{ | |
max.times{|i| |
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
diff --git a/coreaudio.gemspec b/coreaudio.gemspec | |
index 06346b1..12aee3b 100644 | |
--- a/coreaudio.gemspec | |
+++ b/coreaudio.gemspec | |
@@ -36,7 +36,7 @@ Gem::Specification.new do |s| | |
"ext/extconf.rb", | |
"lib/coreaudio.rb" | |
] | |
- s.homepage = "http://github.com/nagachika/coreaudio" | |
+ s.homepage = "https://github.com/nagachika/ruby-coreaudio" |
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
# 1. Add following lines to .git/config. | |
# 2. Run "git fetch k-tsj". | |
# 3. Run "git log". | |
[core] | |
notesRef = refs/notes/ruby-trunk-changes # or "git log --show-notes=ruby-trunk-changes" | |
[remote "k-tsj"] | |
fetch = +refs/notes/*:refs/notes/* | |
url = git://github.com/k-tsj/ruby.git |
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/sh | |
# Usage: | |
# update-ruby-trunk-changes-notes.sh YYYY-MM-DD | |
export LANG=en_US.UTF-8 | |
REPOSDIR=/var/working/ruby-trunk-changes-notes | |
TMPDIR=/tmp/ruby-trunk-changes | |
URL_PREFIX='https://ruby-trunk-changes.hatenablog.com/archive/' |
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
# Copyright (C) 2012 Kazuki Tsujimoto, All rights reserved. | |
# | |
# You can redistribute it and/or modify it under the terms of the 2-clause BSDL. | |
class Pattern | |
attr_accessor :parent | |
attr_reader :env | |
def initialize(*children) | |
@parent = nil |
OlderNewer