1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Mar 11 16:03:44 2018 @author: beast """ from random import * file_limit=50000 #a file with (size) number of characters with open ("random.txt","w") as file : for i in range (file_limit): start=choice([48,65,97]) #make choice among three group i.e whether new character should be a digit ,uppercase or lowercase character end=0 #initialize end with 0 if start==48:end=58 # deicde end point elif start==65:end=91 else:end=123 breakrnd=randint(0,2) breakrnd2=randint(0,2) breakrnd3=randint(0,2) breakrnd4=randint(0,2) rand=randrange(start,end)#now select any character from given range file.write("{0:c}".format(rand)) # writing character obtained from ascii code ... if breakrnd*breakrnd2*breakrnd3*breakrnd4==1 : # random places inserting breaks eg a new line or etc brk=choice(["\n","\t"," "]) file.write(brk) |
1. go to blogger dashboard, select template and edit html. 2. search for </head> to add script. - you may download and upload to your site, or just use this link (no download required) script <script src='http://docs.google.com/uc?id=0B7xJbTAja8i0a0ZJbXJ2TkkwSW8&export=download' type='text/javascript'/> 2. search for ]]></b:skin> to add style/css. img.label_thumb{ float:left; padding:5px; border:1px solid #8f8f8f; background:#D2D0D0; margin-right:10px; height:55px; width:55px; } img.label_thumb:hover{ background:#f7f6f6; } .label_with_thumbs { float: left; width: 100%; min-height: 70px; margin: 0px 10px 2px 0px; adding: 0; } ul.label_with_thumbs li { padding:8px 0; min-height:65px; margin-bottom:10px; } .label_with_thumbs a {} .label_with_thumbs strong {} 2. save template. 3. add a widget. 3. edit widget. at this example i use random post with label "blogger", you must replace it with your label. <div s...
Comments
Post a Comment
share your thoughts ....