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
; ModuleID = '-' | |
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" | |
target triple = "x86_64-apple-macosx10.7.3" | |
define i32 @main(i32 %argc, i8** nocapture %argv) nounwind uwtable ssp { | |
%1 = call i32 @putchar(i32 72) nounwind | |
%2 = call i32 @putchar(i32 101) nounwind | |
%3 = call i32 @putchar(i32 108) nounwind | |
%4 = call i32 @putchar(i32 108) nounwind | |
%5 = call i32 @putchar(i32 111) nounwind |
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
operator entry() { | |
Scalar array[]; | |
for (Size i = 0; i < 1000000; i++) { | |
array.push(1); | |
array.push(0); | |
array.push(2); | |
array.push(3); | |
array.push(1); | |
array.push(5); | |
} |
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
class Fixnum | |
def **(n) | |
self..n | |
end | |
end | |
class Range | |
def %(step) | |
self.step(step) | |
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
#!/usr/bin/env ruby | |
# Requirements: | |
# Ruby1.9 | |
# gem 'ansi' | |
# gem 'text_layout' | |
# diff | |
# diffstat | |
require 'shellwords' |
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
#!/usr/bin/env ruby | |
require 'nokogiri' | |
SEPARATOR = '->' | |
class ClassInfo | |
attr_reader :packageName, :name | |
def initialize(qualified_name) | |
names = qualified_name.split '.' |
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
<!-- | |
java.awt.Color -> System.Drawing.Color | |
new Color(int,int,int) -> System.Drawing.Color.FromArgb(255, @1, @2, @3) | |
.black -> .BLACK | |
.setEnabled(boolean) -> .Enabled = ... | |
--> | |
<mapping> | |
<packages> | |
<package name="java.awt"> |
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 qualified Text.Parsec as P | |
import Control.Applicative | |
import Control.Monad (msum) | |
main = do | |
P.parseTest primitive0 "short" | |
P.parseTest primitive1 "byte" | |
P.parseTest primitive2 "char" | |
primitive0 = do |
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 qualified Text.Parsec as P | |
import Control.Applicative | |
import Control.Monad (liftM, liftM2, msum) | |
data AST = | |
ClassDeclaration AST AST (Maybe AST) (Maybe AST) (Maybe AST) | | |
Identifier String | | |
Keyword String | | |
Comment String | | |
ClassModifiers [AST] | |
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
関西闇Ruby会議の参加者の方へ | |
3日連続でお疲れ様でした。いま僕はVim勉強会と関西闇Ruby勉強会と関西闇Ruby勉強会公式残業会の全てを終えて帰途についている電車の中でこのメールを書いているところです。 | |
関西闇Ruby会議は家に帰ってブログを書いて投稿するまでが関西闇Ruby会議です。ブログを投稿するだけでなく、ハッシュタグ | |
#kyami | |
をつけてtwitterなどにそのURLを投稿すると、後日RubyKaigi Nikkiなどに書かれる予定のまとめ記事からリンクされるので、便利です。 |
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
#!/usr/bin/env ruby | |
require 'pathname' | |
pattern = ARGV.shift | |
dir = ARGV.shift || Dir.pwd | |
Pathname(dir).expand_path.ascend{|d| puts Dir.glob(d + pattern)} |