Skip to content

Commit 83bb40d

Browse files
Merge pull request geekcomputers#66 from NafisFaysal/master
update readme
2 parents 8b18222 + 5cb04c9 commit 83bb40d

File tree

2 files changed

+297
-1
lines changed

2 files changed

+297
-1
lines changed

CountMillionCharacter.py

+296
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,296 @@
1+
import pprint
2+
info = '''SCENE I. Yorkshire. Gaultree Forest.
3+
4+
Enter the ARCHBISHOP OF YORK, MOWBRAY, LORD HASTINGS, and others
5+
ARCHBISHOP OF YORK
6+
What is this forest call'd?
7+
HASTINGS
8+
'Tis Gaultree Forest, an't shall please your grace.
9+
ARCHBISHOP OF YORK
10+
Here stand, my lords; and send discoverers forth
11+
To know the numbers of our enemies.
12+
HASTINGS
13+
We have sent forth already.
14+
ARCHBISHOP OF YORK
15+
'Tis well done.
16+
My friends and brethren in these great affairs,
17+
I must acquaint you that I have received
18+
New-dated letters from Northumberland;
19+
Their cold intent, tenor and substance, thus:
20+
Here doth he wish his person, with such powers
21+
As might hold sortance with his quality,
22+
The which he could not levy; whereupon
23+
He is retired, to ripe his growing fortunes,
24+
To Scotland: and concludes in hearty prayers
25+
That your attempts may overlive the hazard
26+
And fearful melting of their opposite.
27+
MOWBRAY
28+
Thus do the hopes we have in him touch ground
29+
And dash themselves to pieces.
30+
Enter a Messenger
31+
32+
HASTINGS
33+
Now, what news?
34+
Messenger
35+
West of this forest, scarcely off a mile,
36+
In goodly form comes on the enemy;
37+
And, by the ground they hide, I judge their number
38+
Upon or near the rate of thirty thousand.
39+
MOWBRAY
40+
The just proportion that we gave them out
41+
Let us sway on and face them in the field.
42+
ARCHBISHOP OF YORK
43+
What well-appointed leader fronts us here?
44+
Enter WESTMORELAND
45+
46+
MOWBRAY
47+
I think it is my Lord of Westmoreland.
48+
WESTMORELAND
49+
Health and fair greeting from our general,
50+
The prince, Lord John and Duke of Lancaster.
51+
ARCHBISHOP OF YORK
52+
Say on, my Lord of Westmoreland, in peace:
53+
What doth concern your coming?
54+
WESTMORELAND
55+
Then, my lord,
56+
Unto your grace do I in chief address
57+
The substance of my speech. If that rebellion
58+
Came like itself, in base and abject routs,
59+
Led on by bloody youth, guarded with rags,
60+
And countenanced by boys and beggary,
61+
I say, if damn'd commotion so appear'd,
62+
In his true, native and most proper shape,
63+
You, reverend father, and these noble lords
64+
Had not been here, to dress the ugly form
65+
Of base and bloody insurrection
66+
With your fair honours. You, lord archbishop,
67+
Whose see is by a civil peace maintained,
68+
Whose beard the silver hand of peace hath touch'd,
69+
Whose learning and good letters peace hath tutor'd,
70+
Whose white investments figure innocence,
71+
The dove and very blessed spirit of peace,
72+
Wherefore do you so ill translate ourself
73+
Out of the speech of peace that bears such grace,
74+
Into the harsh and boisterous tongue of war;
75+
Turning your books to graves, your ink to blood,
76+
Your pens to lances and your tongue divine
77+
To a trumpet and a point of war?
78+
ARCHBISHOP OF YORK
79+
Wherefore do I this? so the question stands.
80+
Briefly to this end: we are all diseased,
81+
And with our surfeiting and wanton hours
82+
Have brought ourselves into a burning fever,
83+
And we must bleed for it; of which disease
84+
Our late king, Richard, being infected, died.
85+
But, my most noble Lord of Westmoreland,
86+
I take not on me here as a physician,
87+
Nor do I as an enemy to peace
88+
Troop in the throngs of military men;
89+
But rather show awhile like fearful war,
90+
To diet rank minds sick of happiness
91+
And purge the obstructions which begin to stop
92+
Our very veins of life. Hear me more plainly.
93+
I have in equal balance justly weigh'd
94+
What wrongs our arms may do, what wrongs we suffer,
95+
And find our griefs heavier than our offences.
96+
We see which way the stream of time doth run,
97+
And are enforced from our most quiet there
98+
By the rough torrent of occasion;
99+
And have the summary of all our griefs,
100+
When time shall serve, to show in articles;
101+
Which long ere this we offer'd to the king,
102+
And might by no suit gain our audience:
103+
When we are wrong'd and would unfold our griefs,
104+
We are denied access unto his person
105+
Even by those men that most have done us wrong.
106+
The dangers of the days but newly gone,
107+
Whose memory is written on the earth
108+
With yet appearing blood, and the examples
109+
Of every minute's instance, present now,
110+
Hath put us in these ill-beseeming arms,
111+
Not to break peace or any branch of it,
112+
But to establish here a peace indeed,
113+
Concurring both in name and quality.
114+
WESTMORELAND
115+
When ever yet was your appeal denied?
116+
Wherein have you been galled by the king?
117+
What peer hath been suborn'd to grate on you,
118+
That you should seal this lawless bloody book
119+
Of forged rebellion with a seal divine
120+
And consecrate commotion's bitter edge?
121+
ARCHBISHOP OF YORK
122+
My brother general, the commonwealth,
123+
To brother born an household cruelty,
124+
I make my quarrel in particular.
125+
WESTMORELAND
126+
There is no need of any such redress;
127+
Or if there were, it not belongs to you.
128+
MOWBRAY
129+
Why not to him in part, and to us all
130+
That feel the bruises of the days before,
131+
And suffer the condition of these times
132+
To lay a heavy and unequal hand
133+
Upon our honours?
134+
WESTMORELAND
135+
O, my good Lord Mowbray,
136+
Construe the times to their necessities,
137+
And you shall say indeed, it is the time,
138+
And not the king, that doth you injuries.
139+
Yet for your part, it not appears to me
140+
Either from the king or in the present time
141+
That you should have an inch of any ground
142+
To build a grief on: were you not restored
143+
To all the Duke of Norfolk's signories,
144+
Your noble and right well remember'd father's?
145+
MOWBRAY
146+
What thing, in honour, had my father lost,
147+
That need to be revived and breathed in me?
148+
The king that loved him, as the state stood then,
149+
Was force perforce compell'd to banish him:
150+
And then that Harry Bolingbroke and he,
151+
Being mounted and both roused in their seats,
152+
Their neighing coursers daring of the spur,
153+
Their armed staves in charge, their beavers down,
154+
Their eyes of fire sparking through sights of steel
155+
And the loud trumpet blowing them together,
156+
Then, then, when there was nothing could have stay'd
157+
My father from the breast of Bolingbroke,
158+
O when the king did throw his warder down,
159+
His own life hung upon the staff he threw;
160+
Then threw he down himself and all their lives
161+
That by indictment and by dint of sword
162+
Have since miscarried under Bolingbroke.
163+
WESTMORELAND
164+
You speak, Lord Mowbray, now you know not what.
165+
The Earl of Hereford was reputed then
166+
In England the most valiant gentlemen:
167+
Who knows on whom fortune would then have smiled?
168+
But if your father had been victor there,
169+
He ne'er had borne it out of Coventry:
170+
For all the country in a general voice
171+
Cried hate upon him; and all their prayers and love
172+
Were set on Hereford, whom they doted on
173+
And bless'd and graced indeed, more than the king.
174+
But this is mere digression from my purpose.
175+
Here come I from our princely general
176+
To know your griefs; to tell you from his grace
177+
That he will give you audience; and wherein
178+
It shall appear that your demands are just,
179+
You shall enjoy them, every thing set off
180+
That might so much as think you enemies.
181+
MOWBRAY
182+
But he hath forced us to compel this offer;
183+
And it proceeds from policy, not love.
184+
WESTMORELAND
185+
Mowbray, you overween to take it so;
186+
This offer comes from mercy, not from fear:
187+
For, lo! within a ken our army lies,
188+
Upon mine honour, all too confident
189+
To give admittance to a thought of fear.
190+
Our battle is more full of names than yours,
191+
Our men more perfect in the use of arms,
192+
Our armour all as strong, our cause the best;
193+
Then reason will our heart should be as good
194+
Say you not then our offer is compell'd.
195+
MOWBRAY
196+
Well, by my will we shall admit no parley.
197+
WESTMORELAND
198+
That argues but the shame of your offence:
199+
A rotten case abides no handling.
200+
HASTINGS
201+
Hath the Prince John a full commission,
202+
In very ample virtue of his father,
203+
To hear and absolutely to determine
204+
Of what conditions we shall stand upon?
205+
WESTMORELAND
206+
That is intended in the general's name:
207+
I muse you make so slight a question.
208+
ARCHBISHOP OF YORK
209+
Then take, my Lord of Westmoreland, this schedule,
210+
For this contains our general grievances:
211+
Each several article herein redress'd,
212+
All members of our cause, both here and hence,
213+
That are insinew'd to this action,
214+
Acquitted by a true substantial form
215+
And present execution of our wills
216+
To us and to our purposes confined,
217+
We come within our awful banks again
218+
And knit our powers to the arm of peace.
219+
WESTMORELAND
220+
This will I show the general. Please you, lords,
221+
In sight of both our battles we may meet;
222+
And either end in peace, which God so frame!
223+
Or to the place of difference call the swords
224+
Which must decide it.
225+
ARCHBISHOP OF YORK
226+
My lord, we will do so.
227+
Exit WESTMORELAND
228+
229+
MOWBRAY
230+
There is a thing within my bosom tells me
231+
That no conditions of our peace can stand.
232+
HASTINGS
233+
Fear you not that: if we can make our peace
234+
Upon such large terms and so absolute
235+
As our conditions shall consist upon,
236+
Our peace shall stand as firm as rocky mountains.
237+
MOWBRAY
238+
Yea, but our valuation shall be such
239+
That every slight and false-derived cause,
240+
Yea, every idle, nice and wanton reason
241+
Shall to the king taste of this action;
242+
That, were our royal faiths martyrs in love,
243+
We shall be winnow'd with so rough a wind
244+
That even our corn shall seem as light as chaff
245+
And good from bad find no partition.
246+
ARCHBISHOP OF YORK
247+
No, no, my lord. Note this; the king is weary
248+
Of dainty and such picking grievances:
249+
For he hath found to end one doubt by death
250+
Revives two greater in the heirs of life,
251+
And therefore will he wipe his tables clean
252+
And keep no tell-tale to his memory
253+
That may repeat and history his loss
254+
To new remembrance; for full well he knows
255+
He cannot so precisely weed this land
256+
As his misdoubts present occasion:
257+
His foes are so enrooted with his friends
258+
That, plucking to unfix an enemy,
259+
He doth unfasten so and shake a friend:
260+
So that this land, like an offensive wife
261+
That hath enraged him on to offer strokes,
262+
As he is striking, holds his infant up
263+
And hangs resolved correction in the arm
264+
That was uprear'd to execution.
265+
HASTINGS
266+
Besides, the king hath wasted all his rods
267+
On late offenders, that he now doth lack
268+
The very instruments of chastisement:
269+
So that his power, like to a fangless lion,
270+
May offer, but not hold.
271+
ARCHBISHOP OF YORK
272+
'Tis very true:
273+
And therefore be assured, my good lord marshal,
274+
If we do now make our atonement well,
275+
Our peace will, like a broken limb united,
276+
Grow stronger for the breaking.
277+
MOWBRAY
278+
Be it so.
279+
Here is return'd my Lord of Westmoreland.
280+
Re-enter WESTMORELAND
281+
282+
WESTMORELAND
283+
The prince is here at hand: pleaseth your lordship
284+
To meet his grace just distance 'tween our armies.
285+
MOWBRAY
286+
Your grace of York, in God's name then, set forward.
287+
ARCHBISHOP OF YORK
288+
Before, and greet his grace: my lord, we come.
289+
Exeunt'''
290+
count = { }
291+
for character in info.upper():
292+
count.setdefault(character, 0)
293+
count[character] = count[character]+1
294+
295+
value = pprint.pformat(count)
296+
print(value)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ In the scripts the comments etc are lined up correctly when they are viewed in [
3939
- `serial_scanner.py` contains a method called ListAvailablePorts which returns a list with the names of the serial ports that are in use in our computer, this method works only on Linux and Windows (can be extended for mac osx). If no port is found, an empty list is returned.
4040

4141
- `get_youtube_view.py` - This is very simple python script to get more views for your youtube videos.Some times I use for repeating my favorite songs by this scripts.
42-
42+
- `CountMillionCharacter.py` - This Script will,counting character script count how much character present *any text based file.

0 commit comments

Comments
 (0)