Huon on the internet

Experiments? Experiments!

This page is for testing stuff… So it should have an example of everything that could occur, like:

Quotes

The Count of Monte Cristo

This is a brief extract from The Count of Monte Cristo by Alexandre Dumas, Pere.1

On the 24th of February, 1815, the look-out at Notre-Dame de la Garde signalled the three-master, the Pharaon from Smyrna, Trieste, and Naples.

As usual, a pilot put off immediately, and rounding the Chateau d’If, got on board the vessel between Cape Morgion and Rion island.

Immediately, and according to custom, the ramparts of Fort Saint-Jean were covered with spectators; it is always an event at Marseilles for a ship to come into port, especially when this ship, like the Pharaon, has been built, rigged, and laden at the old Phocee docks, and belongs to an owner of the city.

The ship drew on and had safely passed the strait, which some volcanic shock has made between the Calasareigne and Jaros islands; had doubled Pomegue, and approached the harbor under topsails, jib, and spanker, but so slowly and sedately that the idlers, with that instinct which is the forerunner of evil, asked one another what misfortune could have happened on board. However, those experienced in navigation saw plainly that if any accident had occurred, it was not to the vessel herself, for she bore down with all the evidence of being skilfully handled, the anchor a-cockbill, the jib-boom guys already eased off, and standing by the side of the pilot, who was steering the Pharaon towards the narrow entrance of the inner port, was a young man, who, with activity and vigilant eye, watched every motion of the ship, and repeated each direction of the pilot.

The Time Machine

This is a brief extract from The Time Machine by H. G. Wells.2

The Time Traveller (for so it will be convenient to speak of him) was expounding a recondite matter to us. His grey eyes shone and twinkled, and his usually pale face was flushed and animated. The fire burned brightly, and the soft radiance of the incandescent lights in the lilies of silver caught the bubbles that flashed and passed in our glasses. Our chairs, being his patents, embraced and caressed us rather than submitted to be sat upon, and there was that luxurious after-dinner atmosphere when thought roams gracefully free of the trammels of precision. And he put it to us in this way–marking the points with a lean forefinger–as we sat and lazily admired his earnestness over this new paradox (as we thought it) and his fecundity.

‘You must follow me carefully. I shall have to controvert one or two ideas that are almost universally accepted. The geometry, for instance, they taught you at school is founded on a misconception.’

Images

Display testing

Lunar Earthrise

Earthrise from the moon, during the Apollo 10 mission.3

Notice how that image stretches to the edge of the page? Images marked appropriately are made as large as possible, as long as they don’t exceed their native resolution, and stay within the appropriate area.

Tropical Beach

A panorama of a Thai beach.4

Look, this image is displayed differently! It is restricted to stay within the same area as the text.

Caption testing

fail "Not implemented" :: Either String HTML

Heading testing

I’m testing how the headings work here. To do so, I need text, so I shoved the introductions of a variety of Wikipedia pages through a Markov text generator.

Third level of headings

In category theory, quotient groups are the cyclic group and quotient objects, which are the two primary ways of quotient group, the identity element is always isomorphic to subobjects. For other examples of the cyclic group theory, a homomorphism is a larger group and quotient group theory, a larger group.5

Level 4

Formally, a discrete set of Markov property. Often, the process involves a creature will not additionally on the position there is the probability 6/10. This creature’s eating habits can be calculated is the system was previously in which the next step (and in fact at a discrete (discrete-time) random walk).6

Again, the third

Déjà vu?

The main implementation of functions. A pure function may return a rich type which were originally conceived as a distinct type for its high-performance implementation of a rich type polymorphism. It is an open, published specification,[21] and parallelism,[26] and type system incorporating recent innovations such as a purely functional language.7

Heading level #5

The origins range from all directions, hiding any clue of the discovery of heavier elements. These nuclei or alpha particles, and 1% are stable subatomic particles, originating in our galaxy and thus are stable particles that very long distances with regard to as positrons or sudden galactic event, suggesting multiple.8

Last one (6)

The BBC is a Royal Charter and book publishing. The BBC is an annual television broadcasts; the corporation. The former is charged to refer to all British government. These grants were determined independently of Man. The Corporation’s ‘guaranteed’ income from the BBC World Service in the domestic services, particularly for.9

Code

Python

def f(x):
   print(x)
f(1)

Haskell

{- Fibonacci numbers -}
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)

-- Naive (trial division) primality test
isPrime n = all ((/=0) . mod n) . takeWhile (\x -> x*x <= n) $ primes

-- list of all primes
primes = 2 : [ x | x <- [3,5..], isPrime x]

{- counts the number of words with more than
   10 letters in the text supplied -}
count_long_words :: String -> Int
count_long_words = length . filter ((>10) . length) . words . filter (`notElem` ".,;:!?\"'()[]{}<>/\\|-")

Assorted others

Definition list

Term
Definition
Term.a
Term.b
Definition
  1. I’m even allowed to have very long footnotes that repeat themselves, because I’m allowed to have repetitious long footnotes. Now this is lucky, because this footnotes is very long, and also pretty repetitious!

    This is the next paragraph of this long footnote. And it will say similar things, like the fact that this footnote is long, and it seems to not have anything original to say. 

  2. Published in 1844. Source

  3. Published in 1898. Source

  4. Original image by NASA; accessible here

  5. Image by kallerna; accessible here

  6. From Quotient group

  7. From Markov Chain

  8. From Haskell

  9. From Cosmic rays

  10. From BBC