diff --git a/llluiop/0000/DejaVuSansMono-Bold.ttf b/llluiop/0000/DejaVuSansMono-Bold.ttf new file mode 100644 index 00000000..09d42796 Binary files /dev/null and b/llluiop/0000/DejaVuSansMono-Bold.ttf differ diff --git a/llluiop/0000/DejaVuSansMono-BoldOblique.ttf b/llluiop/0000/DejaVuSansMono-BoldOblique.ttf new file mode 100644 index 00000000..0344c227 Binary files /dev/null and b/llluiop/0000/DejaVuSansMono-BoldOblique.ttf differ diff --git a/llluiop/0000/DejaVuSansMono-Oblique.ttf b/llluiop/0000/DejaVuSansMono-Oblique.ttf new file mode 100644 index 00000000..bc16d51b Binary files /dev/null and b/llluiop/0000/DejaVuSansMono-Oblique.ttf differ diff --git a/llluiop/0000/DejaVuSansMono.ttf b/llluiop/0000/DejaVuSansMono.ttf new file mode 100644 index 00000000..7260bd65 Binary files /dev/null and b/llluiop/0000/DejaVuSansMono.ttf differ diff --git a/llluiop/0000/addNumOnPic.py b/llluiop/0000/addNumOnPic.py new file mode 100644 index 00000000..c34adf45 --- /dev/null +++ b/llluiop/0000/addNumOnPic.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + + +import os +import Image +import ImageDraw +import ImageFont + +def drawFont(img): + font = ImageFont.truetype("DejaVuSansMono.ttf", 20) + draw = ImageDraw.Draw(img) + draw.ink = 255 + draw.text((img.size[0] - 20, 5), "2", font=font) + + +def main(): + img = Image.open("avatar.jpg") + drawFont(img) + img.save("avatar_num.jpg") + + + + +if __name__ == '__main__': + main() diff --git a/llluiop/0000/avatar.jpg b/llluiop/0000/avatar.jpg new file mode 100644 index 00000000..1d696bfb Binary files /dev/null and b/llluiop/0000/avatar.jpg differ diff --git a/llluiop/0000/avatar_num.jpg b/llluiop/0000/avatar_num.jpg new file mode 100644 index 00000000..2d0a8fb4 Binary files /dev/null and b/llluiop/0000/avatar_num.jpg differ diff --git a/llluiop/0001/InvitationCode.py b/llluiop/0001/InvitationCode.py new file mode 100644 index 00000000..15fb8ae8 --- /dev/null +++ b/llluiop/0001/InvitationCode.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +import string +from random import * + +def basecode(): + return string.ascii_uppercase + string.digits + +def codes(basecodes): + while True: + yield "".join(choice(basecodes) for x in range(20)) + + +def main(): + sets = set() + for code in codes(basecode()): + if len(sets) < 200: + sets.add(code) + else: + break + + for s in sets: + print s + + + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/llluiop/0006/MostWords.py b/llluiop/0006/MostWords.py new file mode 100644 index 00000000..0758c58c --- /dev/null +++ b/llluiop/0006/MostWords.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python + +import os + + +def DiaryFiles(path): + if os.path.exists(path): + for file in os.listdir(path): + if 'diary' in file: + yield os.path.join(path, file) + +def CalcWords(file, dict1): + f = open(file) + for line in f.readlines(): + for word in line.split(): + if word in dict1.keys(): + dict1[word] += 1 + else: + dict1[word] = 1 + +def Words(path): + dict1 = {} + for file in DiaryFiles(path): + CalcWords(file, dict1) + + maxvalue = max(dict1.values()) + + for key in dict1: + if dict1[key] == maxvalue: + print key,':', maxvalue + + + +if __name__ == '__main__': + Words('diary') + diff --git a/llluiop/0006/diary/diary.txt b/llluiop/0006/diary/diary.txt new file mode 100644 index 00000000..bda42ae0 --- /dev/null +++ b/llluiop/0006/diary/diary.txt @@ -0,0 +1,38 @@ +Shape of my heart + +He deals the cards as a meditation +And those he plays never suspect +He doesn't play for the money he wins +He doesn't play for respect +He deals the crads to find the answer +The sacred geometry of chance +The hidden loaw of a probable outcome +The numbers lead a dance + +I know that the spades are swords of a soldier +I know that the clubs are weapons of war +I know that diamonds mean money for this art +But that's not the shape of my heart +He may play the jack of diamonds +He may lay the queen of spades +He may conceal a king in his hand +While the memory of it fades + +I know that the spades are swords of a soldier +I know that the clubs are weapons of war +I know that diamonds mean money for this art +But that's not the shape of my heart + +And if I told you that I loved you +You'd maybe think there's something wrong +I'm not a man of too many faces +The mask I wear is one +Those who speak know nothing +And find out to their cost +Like those who curse their luck in too many places +And those who fear are lost + +I know that the spades are swords of a soldier +I know that the clubs are weapons of war +I know that diamonds mean money for this art +But that's not the shape of my heart \ No newline at end of file diff --git a/llluiop/0006/diary/diary1.txt b/llluiop/0006/diary/diary1.txt new file mode 100644 index 00000000..a60acc43 --- /dev/null +++ b/llluiop/0006/diary/diary1.txt @@ -0,0 +1,3 @@ +Shape of my heart + + \ No newline at end of file diff --git a/llluiop/0006/diary/diary2.txt b/llluiop/0006/diary/diary2.txt new file mode 100644 index 00000000..bbca5152 --- /dev/null +++ b/llluiop/0006/diary/diary2.txt @@ -0,0 +1,11 @@ +Shape of my heart + +He deals the cards as a meditation +And those he plays never suspect +He doesn't play for the money he wins +He doesn't play for respect +He deals the crads to find the answer +The sacred geometry of chance +The hidden loaw of a probable outcome +The numbers lead a dance + diff --git a/llluiop/0006/diary/diary3.txt b/llluiop/0006/diary/diary3.txt new file mode 100644 index 00000000..982c3834 --- /dev/null +++ b/llluiop/0006/diary/diary3.txt @@ -0,0 +1,20 @@ +Shape of my heart + +He deals the cards as a meditation +And those he plays never suspect +He doesn't play for the money he wins +He doesn't play for respect +He deals the crads to find the answer +The sacred geometry of chance +The hidden loaw of a probable outcome +The numbers lead a dance + +I know that the spades are swords of a soldier +I know that the clubs are weapons of war +I know that diamonds mean money for this art +But that's not the shape of my heart +He may play the jack of diamonds +He may lay the queen of spades +He may conceal a king in his hand +While the memory of it fades + diff --git a/llluiop/0006/diary/diary4.txt b/llluiop/0006/diary/diary4.txt new file mode 100644 index 00000000..b276dde3 --- /dev/null +++ b/llluiop/0006/diary/diary4.txt @@ -0,0 +1,34 @@ +Shape of my heart + +He deals the cards as a meditation +And those he plays never suspect +He doesn't play for the money he wins +He doesn't play for respect +He deals the crads to find the answer +The sacred geometry of chance +The hidden loaw of a probable outcome +The numbers lead a dance + +I know that the spades are swords of a soldier +I know that the clubs are weapons of war +I know that diamonds mean money for this art +But that's not the shape of my heart +He may play the jack of diamonds +He may lay the queen of spades +He may conceal a king in his hand +While the memory of it fades + +I know that the spades are swords of a soldier +I know that the clubs are weapons of war +I know that diamonds mean money for this art +But that's not the shape of my heart + +And if I told you that I loved you +You'd maybe think there's something wrong +I'm not a man of too many faces +The mask I wear is one +Those who speak know nothing +And find out to their cost +Like those who curse their luck in too many places +And those who fear are lost + diff --git a/llluiop/0006/diary/diary5.txt b/llluiop/0006/diary/diary5.txt new file mode 100644 index 00000000..bda42ae0 --- /dev/null +++ b/llluiop/0006/diary/diary5.txt @@ -0,0 +1,38 @@ +Shape of my heart + +He deals the cards as a meditation +And those he plays never suspect +He doesn't play for the money he wins +He doesn't play for respect +He deals the crads to find the answer +The sacred geometry of chance +The hidden loaw of a probable outcome +The numbers lead a dance + +I know that the spades are swords of a soldier +I know that the clubs are weapons of war +I know that diamonds mean money for this art +But that's not the shape of my heart +He may play the jack of diamonds +He may lay the queen of spades +He may conceal a king in his hand +While the memory of it fades + +I know that the spades are swords of a soldier +I know that the clubs are weapons of war +I know that diamonds mean money for this art +But that's not the shape of my heart + +And if I told you that I loved you +You'd maybe think there's something wrong +I'm not a man of too many faces +The mask I wear is one +Those who speak know nothing +And find out to their cost +Like those who curse their luck in too many places +And those who fear are lost + +I know that the spades are swords of a soldier +I know that the clubs are weapons of war +I know that diamonds mean money for this art +But that's not the shape of my heart \ No newline at end of file