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 | |
module StringEx | |
def remove(re) | |
gsub(re) {} | |
end | |
def wrap(w) | |
"#{w[0]}#{self}#{w[-1]}" | |
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
#ifndef INCLUDED_EZPUT_H | |
#define INCLUDED_EZPUT_H | |
#ifdef __cplusplus | |
extern "C" { | |
#endif /* __cplusplus */ | |
#include <stdio.h> /* printf() */ | |
#include <ctype.h> /* isprint() */ |
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 | |
# -*- coding: UTF-8 -*- | |
# | |
# The method definition of a special name. (Ruby1.9) | |
# | |
class C | |
def a?(x) ; :foo ; end | |
def a!(x) ; :foo ; end | |
def a=(x) ; :foo ; 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/make -f | |
# -*- coding: UTF-8 -*- | |
# | |
# to generate 'foo.rb' from 'foo.ry' | |
# | |
# ex.1) $ make foo.rb | |
# | |
# ex.2) $ make FLAGS=-C foo.rb # syntax check only | |
# |
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
/* | |
llist.h | |
*/ | |
#ifndef INCLUDED_LLIST_H | |
#define INCLUDED_LLIST_H | |
#define llist_init(l_) ((l_)->next = (l_)->prev = (l_)) | |
#define llist_next(l_) ((l_)->next) | |
#define llist_prev(l_) ((l_)->prev) |
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 | |
# -*- coding: UTF-8 -*- | |
# | |
# $ ruby -v | |
# ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] | |
# | |
p %!abc! | |
p %"abc" |
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 | |
# -*- coding: UTF-8 -*- | |
# | |
# $ ruby -v | |
# ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] | |
# | |
p %Q!abc! | |
p %Q"abc" |
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 | |
# -*- coding: UTF-8 -*- | |
# | |
# $ ruby -v | |
# ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] | |
# | |
x = "xyz" | |
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 | |
# -*- coding: UTF-8 -*- | |
# | |
# $ ruby -v | |
# ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] | |
# | |
x = "xyz" | |
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 | |
# -*- coding: UTF-8 -*- | |
# | |
# $ ruby -v | |
# ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] | |
# | |
x = "xyz" | |
OlderNewer