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
tree* varref(string program, parse* opthion){ | |
tree* vname = name(program, option); | |
if(option->error) return vname; | |
return new varref_tree(vname); | |
} |
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
# -*- coding: utf-8 -*- | |
require 'uri' | |
class WebBrowser | |
def self.open(uri) | |
uri = URI.parse(uri.to_s) | |
unless %w[ http https ftp file ].include?(uri.scheme) | |
raise ArgumentError | |
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
from PIL import Image | |
omote = Image.open('omote.png', 'r') | |
ura = Image.open('ura.png', 'r') | |
dest = Image.new('RGBA', omote.size) | |
(width, height) = omote.size | |
for x in range(width): |