Skip to content

Instantly share code, notes, and snippets.

Yusuke Endoh mame

Block or report user

Report or block mame

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
View 0001-sfx-support.patch
From 552877c780545e8b25ededf8fa2f0042597b6bcb Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@tsg.ne.jp>
Date: Thu, 10 May 2012 22:38:46 +0900
Subject: [PATCH] * sfx support.
---
cygwin/GNUmakefile.in | 11 ++++++---
io.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++++
ruby.c | 16 +++++++++++++
win32/fix-size.rb | 20 ++++++++++++++++
View gist:2591063
diff --git a/ruviedit/ruviedit.pro b/ruviedit/ruviedit.pro
index 1b8d434..a8fcc54 100644
--- a/ruviedit/ruviedit.pro
+++ b/ruviedit/ruviedit.pro
@@ -3,11 +3,8 @@
# ------------------------------------------------------
TEMPLATE = app
-TARGET = ruviedit
-DESTDIR = ../
View gist:2584253
diff --git a/ruviedit/OutlineBar.cpp b/ruviedit/OutlineBar.cpp
index db40aee..d8d263e 100644
--- a/ruviedit/OutlineBar.cpp
+++ b/ruviedit/OutlineBar.cpp
@@ -236,7 +236,8 @@ QTreeWidgetItem *OutlineBar::itemByDir(const QString &fullPath)
void OutlineBar::doParse(EditView *view, QTreeWidgetItem *item)
{
QList<OutlineItem> oi;
- OutlineTokenizer tn(view->document()->begin());
+ QTextBlock tb = view->document()->begin();
@mame
mame / gist:2510170
Created Apr 27, 2012
A Ranking of the "Procrastinating" committers of Ruby (2012/04/27)
View gist:2510170
A Ranking of the "Procrastinating" committers of Ruby (2012/04/27)
(or, how many tickets does each committer have?)
1: matz (126 tickets)
2: nobu (62 tickets)
3: ko1 (53 tickets)
4: akr (29 tickets)
5: mrkn (25 tickets)
6: nahi (18 tickets)
7: MartinBosslet (16 tickets)
@mame
mame / t.c
Created Aug 22, 2011
Is it able to eliminate the tail call bar() ?
View t.c
int *p;
void foo(int *n) {
p = n;
}
void bar() {
print("%d\n", *p);
}
View fakecoin.als
// 失敗版
sig Coin {}
abstract sig State {
  candidates : set Coin,
}
sig Branch extends State {
  left, right : set Coin, 
  eq, lt, gt : State
View gist:323677
require "tempfile"
i = 0
loop { p Tempfile.new("foo#{ i += 1 }bar") }
View gist:305689
diff --git a/core/time/plus_spec.rb b/core/time/plus_spec.rb
index 712c035..1b5d179 100644
--- a/core/time/plus_spec.rb
+++ b/core/time/plus_spec.rb
@@ -10,12 +10,6 @@ describe "Time#+" do
(Time.at(1.1) + 0.9).should == Time.at(0.9) + 1.1
end
- it "understands negative additions" do
- t = Time.at(100) + -1.3
View gist:301491
rubyspec status on trunk (2010-02-11)
##### narse said (on IRC) this is a wrong spec (EUC-JP is correct result). I'll fix after narse's approval
1)
File#to_path does not preserve the encoding of the path FAILED
Expected #<Encoding:EUC-JP>
to equal #<Encoding:UTF-8>
View gist:300491
rubyspec status on trunk (2010-02-10)
##### waiting for Yugui's commit [ruby-dev:40252]
1)
Ruby character strings interpolates the return value of Object#inspect, without ivars, if Object#to_s does not return a String instance ERROR
ArgumentError: wrong number of arguments(2 for 1)
/home/mame/work/ruby/spec/rubyspec/language/string_spec.rb:158:in `[]'
/home/mame/work/ruby/spec/rubyspec/language/string_spec.rb:158:in `block (2 levels) in <top (required)>'
You can’t perform that action at this time.