- The odds a man does not own a pair of blue jeans are 1 in 10 (US, 2001).
- The odds a man using a public restroom was observed not washing his hands are 1 in 2.99 (US, 2007).
- The odds a woman owns a pair of high heels are 1 in 1.64 (US, 2001).
- The odds a person 25 or older with a master's degree has an income of $100,000 or more are 1 in 5.43 (US, 3/2007).
- The odds a female 25 or older with a master's degree has an income of $100,000 or more are 1 in 10.98 (US, 3/2007).
- more...
The book of Odds
Collection of Odds about everything here (on US population).
Javascript validator on Emacs (v2)
A Javascript validator that I use frequently, mentioned here for Textmate, now on Emacs:
To force to run: M-x my-js-validate
With the hooks setup, whenever a javascript file is saved then my-js-validate is executed.
(if you use js2-mode or espresso-mode, then you need to change 'javascript-mode-hook accordingly, for example to 'espresso-mode-hook)
(defun my-js-validate () (interactive) (if (string-match "\\.js$" (buffer-file-name)) (shell-command (concat "java -jar /Bins/Javascript/rhino1_7R2/js.jar /Bins/Javascript/lint/rhino_jslint.js " (buffer-file-name (current-buffer)))))) (defun my-js-hooks () (progn (message "Entered Javascript Mode") (add-hook 'after-save-hook 'my-js-validate))) (add-hook 'javascript-mode-hook 'my-js-hooks)
To force to run: M-x my-js-validate
With the hooks setup, whenever a javascript file is saved then my-js-validate is executed.
(if you use js2-mode or espresso-mode, then you need to change 'javascript-mode-hook accordingly, for example to 'espresso-mode-hook)
Subscribe to:
Posts (Atom)