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/python | |
#coding:utf-8 | |
import sys | |
import os | |
###################################### | |
# | |
# sys.argv[1] - file name. | |
# sys.argv[2] - directory name. |
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/python | |
#coding:utf-8 | |
""" | |
This Module can Download image. | |
CopyRight Alice All Rights Reserved. | |
maked by 2010.12.01 | |
Usage::python getimg.py [url] [directory] | |
Option:: |
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/python | |
#coding:utf-8 | |
"""This Module is delete .pyc-files. | |
Usage:: | |
python index.py | |
""" | |
import os |
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/python | |
#coding:utf-8 | |
class toDict(): | |
""" | |
This class make dictionary from list. | |
if list have not '=' string, this class say error. | |
ex.) | |
>>> a = ['a=b','c=d'] | |
>>> e = toDict(a) |
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/python | |
#coding:utf-8 | |
import funcs | |
import types | |
import sys | |
import os | |
class MakeXML(): | |
"""このモジュールは自分で項目をつくりながらXMLファイルを生成できるものです |
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/python | |
#coding:utf-8 | |
import random | |
def makestr(num): | |
s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789[]{}!$%&'()-^¥:;*+><" | |
strist = list(s) | |
string = "" | |
for i in range(num): |
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/python | |
#coding:utf-8 | |
import urllib | |
import sys | |
url="http://ux.nu/api/short?url=" | |
query = url+str(sys.argv[1]) | |
up = urllib.urlopen(query) |
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
def exp(dictionary): | |
item = {} | |
item["keys"] = [] | |
item["values"] = [] | |
for i,j in dictionary.iteritems(): | |
item["keys"].append(i) | |
item["values"].append(j) | |
return item |
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/python | |
#coding:utf-8 | |
"""this is very usefull Modules. | |
CLASSES: | |
File -- Make file object as you want. | |
DictSearch -- Search a dictionary. | |
FUNCTIONS: |
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/python | |
#coding:utf-8 | |
import json | |
import usable # <- it's my module. Please look git:770826 | |
import commands | |
import sys | |
import urllib | |
class Getlink: |
OlderNewer