View Identicon.cs
using UnityEngine;
using System.Collections;
using System.Security.Cryptography;
using System;
using System.Text;
using UnityEngine.UI;
public class Identicon : MonoBehaviour {
[SerializeField]GameObject rect_plane;//描画につかうPlane
View Dither.py
# -*- coding:utf-8 -*-
#import numpy
from PIL import Image
class Dither:
def __init__(self,image_path):
self.imgdata = Image.open(image_path).resize((128,128)).convert("L")
#self.imgarray = numpy.asarray(self.imgdata)
def error_diffusion(self):
View meisi.py
# -*- coding:utf-8 -*-
import Twitter #自作twitterAPIライブラリ
import Dither #画像2値化自作ライブラリ
from PIL import Image,ImageDraw,ImageFont
from urllib import urlretrieve
from os import mkdir,path,linesep
from qrcode import QRCode
from urllib2 import urlopen
from sys import stdout
from printer import ThermalPrinter
View rdmpic.py
# coding:utf-8
from PIL import Image,ImageDraw
from sys import argv,stdout,version_info
from random import randint
def main():
if(len(argv) == 2):
make_pic(argv[1])
else:
print(u"パラメータが不適切です")
View steam_price_checker.py
# coding:utf-8
import urllib2
import re
import datetime
import sys
def check_web(id,isapp):
try:
html = get_html(id,isapp)
name,time,price = parse_html(html)
View get_spaco.py
#coding:utf-8
import os
import urllib.request
import time
from bs4 import BeautifulSoup
# すぱこーの掲載ページのurl抜き出し
def scan_url(url,crtdir):
pages = [url]
req = urllib.request.urlopen(url)
View calendar
import calendar
import datetime
today = datetime.date.today()
calendar.setfirstweekday(calendar.SUNDAY)
print calendar.month(today.year,today.month)