Cleanup the Sandbox repository
Change-Id: Ia3155a3d94985c9693b253b602f3ff7e4098d0c8
This commit is contained in:
parent
aa50f9b100
commit
d85ebf3f55
@ -6,7 +6,3 @@ and processes used for OpenStack development.
|
|||||||
For detail, see the chapter "`Learn the Gerrit Workflow in the
|
For detail, see the chapter "`Learn the Gerrit Workflow in the
|
||||||
Sandbox <http://docs.openstack.org/infra/manual/sandbox.html>`_"
|
Sandbox <http://docs.openstack.org/infra/manual/sandbox.html>`_"
|
||||||
in Infrastructure User Manual.
|
in Infrastructure User Manual.
|
||||||
|
|
||||||
And now it _is_ up-to-date. Fix here too.
|
|
||||||
=======
|
|
||||||
My fix
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
This is a test file for new commit
|
|
@ -1,3 +0,0 @@
|
|||||||
sadfjklsadf
|
|
||||||
|
|
||||||
AAAAAAAAAAA
|
|
24
cat.txt
24
cat.txt
@ -1,24 +0,0 @@
|
|||||||
import Image
|
|
||||||
|
|
||||||
grey2char = ['@', '#', '$', '%', '&', '?', '*', 'o', '/', '{', '[', '(', '|', '!', '^', '~', '-', '_', ':', ';', ',',
|
|
||||||
'.', '`', ' ']
|
|
||||||
count = len(grey2char)
|
|
||||||
|
|
||||||
|
|
||||||
def toText(image_file):
|
|
||||||
image_file = image_file.convert('L') # 转灰度
|
|
||||||
result = '' # 储存字符串
|
|
||||||
for h in range(0, image_file.size[1]): # height
|
|
||||||
for w in range(0, image_file.size[0]): # width
|
|
||||||
gray = image_file.getpixel((w, h))
|
|
||||||
result += grey2char[int(gray / (255 / (count - 1)))]
|
|
||||||
result += '\r\n'
|
|
||||||
return result
|
|
||||||
|
|
||||||
|
|
||||||
image_file = Image.open("nyanko.jpg") # 打开图片
|
|
||||||
image_file = image_file.resize((int(image_file.size[0]*0.2), int(image_file.size[1] * 0.1))) # 调整图片大小
|
|
||||||
|
|
||||||
output = open('outputcat.txt', 'w')
|
|
||||||
output.write(toText(image_file))
|
|
||||||
output.close()
|
|
@ -1 +0,0 @@
|
|||||||
Hello openstack
|
|
@ -1,2 +0,0 @@
|
|||||||
This is cuongnq's first CL for OpenStack
|
|
||||||
Hello world
|
|
@ -1 +0,0 @@
|
|||||||
something
|
|
@ -1 +0,0 @@
|
|||||||
This is the first file.
|
|
@ -1 +0,0 @@
|
|||||||
This is my first changeset for OpenStack.
|
|
@ -1 +0,0 @@
|
|||||||
Testing for bug report
|
|
@ -1 +0,0 @@
|
|||||||
Hello world gitterific!
|
|
@ -1,3 +0,0 @@
|
|||||||
Hello OpenStack Community,
|
|
||||||
This is my frst bug fix.
|
|
||||||
I really hope it gets merged to master.
|
|
@ -1 +0,0 @@
|
|||||||
hello
|
|
@ -1,5 +0,0 @@
|
|||||||
Uptream training study - bug reporting test
|
|
||||||
|
|
||||||
|
|
||||||
This is my dummy file for bug fixing
|
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
hello this is test of upstream study
|
|
@ -1 +0,0 @@
|
|||||||
test.....
|
|
@ -1 +0,0 @@
|
|||||||
hello this is test of upstream study
|
|
@ -1 +0,0 @@
|
|||||||
This is test...
|
|
@ -1 +0,0 @@
|
|||||||
HELLO!!!
|
|
@ -1,3 +0,0 @@
|
|||||||
Violet owo!
|
|
||||||
Patch set 2
|
|
||||||
Close
|
|
Loading…
x
Reference in New Issue
Block a user