Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🐰

akouryy akouryy

💭
🐰
View GitHub Profile
View main.py
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):
View gist:6341059
tree* varref(string program, parse* opthion){
tree* vname = name(program, option);
if(option->error) return vname;
return new varref_tree(vname);
}
@mono0x
mono0x / webbrowser.rb
Created Mar 6, 2012
Open URI with default web browser
View webbrowser.rb
# -*- 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