Skip to content

Instantly share code, notes, and snippets.

View reuven's full-sized avatar
💭
Teaching Python and data science around the world

Reuven M. Lerner reuven

💭
Teaching Python and data science around the world
View GitHub Profile
;;; Reuven's .emacs.el file
;;; ------------------------------------------------------------
;;; Load packages
;;; ------------------------------------------------------------
(add-to-list 'load-path "~/.emacs.d")
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
(add-to-list 'auto-mode-alist '("\\.js.erb$" . js2-mode))
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
export ZSH_THEME="reuven"
export EDITOR=emacsclient
This is a test file.
It contains 28 words and 20 different words.
It also contains 165 characters.
It also contains 11 lines.
It is also self-referential.
Adidas orange 43
Nike black 41
Adidas black 39
New Balance pink 41
Nike white 44
New Balance orange 38
Nike pink 44
Adidas pink 44
New Balance orange 39
New Balance black 43
This file has been truncated, but you can view the full file.
165.124.116.225 - - [26/Jan/2011:21:02:45 +0200] "GET / HTTP/1.1" 500 76 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b9) Gecko/20100101 Firefox/4.0b9"
95.108.158.232 - - [26/Jan/2011:21:03:00 +0200] "GET /browse/display_preview/786 HTTP/1.1" 500 68 "-" "Mozilla/5.0 (compatible; YandexImages/3.0; +http://yandex.com/bots)"
165.124.116.225 - - [26/Jan/2011:21:03:00 +0200] "GET /favicon.ico HTTP/1.1" 200 299 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b9) Gecko/20100101 Firefox/4.0b9"
66.249.67.202 - - [26/Jan/2011:21:03:45 +0200] "GET /browse/browse_files_tab/941?tab=true HTTP/1.1" 500 76 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
165.124.114.198 - - [26/Jan/2011:21:04:35 +0200] "GET /account/groups HTTP/1.1" 500 76 "http://modelingcommons.org/" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10"
95.108.158.232 - - [26/Jan/2011:21:04:55 +0200] "GET /browse/display_preview/819 HTTP/1.1
67.218.116.165 - - [30/Jan/2010:00:03:18 +0200] "GET /robots.txt HTTP/1.0" 200 99 "-" "Mozilla/5.0 (Twiceler-0.9 http://www.cuil.com/twiceler/robot.html)"
66.249.71.65 - - [30/Jan/2010:00:12:06 +0200] "GET /browse/one_node/1557 HTTP/1.1" 200 39208 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
65.55.106.183 - - [30/Jan/2010:01:29:23 +0200] "GET /robots.txt HTTP/1.1" 200 99 "-" "msnbot/2.0b (+http://search.msn.com/msnbot.htm)"
65.55.106.183 - - [30/Jan/2010:01:30:06 +0200] "GET /browse/one_model/2162 HTTP/1.1" 200 2181 "-" "msnbot/2.0b (+http://search.msn.com/msnbot.htm)"
66.249.71.65 - - [30/Jan/2010:02:07:14 +0200] "GET /browse/browse_applet_tab/2593 HTTP/1.1" 200 10305 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.71.65 - - [30/Jan/2010:02:10:39 +0200] "GET /browse/browse_files_tab/2499?tab=true HTTP/1.1" 200 446 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.65.12 - - [30/Jan/2010:03:13:34 +0200]
[user]
name = Reuven Lerner
email = reuven@lerner.co.il
[color]
branch = auto
diff = auto
interactive = auto
pager = true
status = auto
ui = auto
#!/usr/bin/env python
# def xml(....)
#
# print xml('foo') # => <foo></foo>
# print xml('foo', 'bar') # => <foo>bar</foo>
# print xml('p', xml('i', xml('b', 'Hello')))
# # # # # => <p><i><b>Hello</b></i></p>
##
# User Database
#
# Note that this file is consulted directly only when the system is running
# in single-user mode. At other times this information is provided by
# Open Directory.
#
# See the opendirectoryd(8) man page for additional information about
# Open Directory.
##
The Fancy Restaurant
Salad $5.00
Big salad $7.50
Soup $3.50
Big soup 5.50$
Sandwich $8.00
Big sandwich $10.00