Nov. 13th, 2012

I am testing syntax highlight for for posting in dreamwidth. Generated code was done using Emacs Org Mode.

sub subroutine(){
    print $cow;
}

Yet another test, this time from GNU Source Highlight

my $cow;

sub procedure () {
  print $cow;
}

  1. Put both lids of the toilet up and add 1/8 cup of pet shampoo to the water in the bowl.
  2. Pick up the cat and soothe him while you carry him towards the bathroom.
  3. In one smooth movement, put the cat in the toilet and close the lid. You may need to stand on the lid.
  4. At this point the cat will self agitate and make ample suds. Never mind the noises that come from the toilet; the cat is actually enjoying this!
  5. Flush the toilet three or four times. This provides a "Power Wash" and "Rinse".
  6. Have someone open the front door of your home. Be sure that there are no people between the bathroom and the front door.
  7. Stand well back, behind the toilet as far as you can, and quickly lift the lid.
  8. The cat will rocket out of the toilet, streak through the bathroom, and run outside where he will dry himself off.
  9. Both the toilet and the cat will be sparkling clean.

Yours Sincerely,

The Dog

PS. Oldie but goodie. :)
The following code gets the Lorem Ipsum dummy text from http://lipsum.com. This is written in newLisp .

;; This code is in newLisp
;; 
;; Use the lipsum generator to generate Lorem Ipsum dummy paragraphs / words / bytes.
;;
;; Lorem Ipsum courtesy of www.lipsum.com by James Wilson
;;
;; @param what in "paras","words","bytes"]
;; @param amount of paras/words/bytes (for words minimum is 5, for bytes it is 27)
;; @param start always start with 'Lorem Ipsum' "true"/"false"

(define (lipsum what amount start)
   (setq lipsum-buffer (get-url (format 
     "http://www.lipsum.com/feed/xml?what=%s&amount=%d&start=%s" 
     what amount start)))
   (setq lipsum-list (xml-parse lipsum-buffer 7))
   (nth 1 (first (nth 2 (first (nth 2 (first lipsum-list)))))))


(lipsum "paras" 2 "true")

Profile

papoanaya: (Default)
papoanaya

November 2016

S M T W T F S
  12345
6789101112
131415 16171819
20212223242526
27282930   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 4th, 2025 10:03 pm
Powered by Dreamwidth Studios