[personal profile] papoanaya
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")
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

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 Jun. 8th, 2025 04:27 am
Powered by Dreamwidth Studios