This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; ~/.emacs.d/init.el | |
| ;; basic editing | |
| (defun scroll-n-lines-ahead (&optional n) | |
| "Scroll ahead N lines (1 by default)." | |
| (interactive "P") | |
| (scroll-up (prefix-numeric-value n))) | |
| (defun scroll-n-lines-behind (&optional n) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/ruby | |
| require 'webrick' | |
| mimetypes = WEBrick::HTTPUtils::DefaultMimeTypes | |
| mimetypes["js"] = "application/x-javascript" | |
| mimetypes["svg"] = "image/svg+xml" | |
| s = WEBrick::HTTPServer.new(:Port => 8000, | |
| :DocumentRoot => Dir::pwd, |
NewerOlder