This file contains 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
With project 3 winding down it seemed appropriate to browse through the svn commits. Here's some notable messages to hopefully brighten your day. | |
"load this up and enjoy yourself." | |
"oh bloody hell" | |
"Well, this is going somewhere..." | |
"woot" |
This file contains 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
import java.text.DecimalFormat; | |
import java.util.Scanner; | |
public class Vote | |
{ | |
//main method will collect data from the user and place it within arrays | |
public static void main (String[] args){ | |
Scanner sc = new Scanner (System.in); | |
int row; | |
int col; |
This file contains 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/make | |
clean: | |
find -regextype posix-extended . -maxdepth 1 \( -regex "^[.]?(.+)\~$$" -o -regex "./[.]?#.*#" \) -delete |
This file contains 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/env python | |
import ldap | |
import re | |
from accounts import user | |
DEBUG = 1 | |
def dn2uid(dn): | |
if "cn=" in dn or "uid=" in dn: | |
return user.dn2uid(dn) |
This file contains 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
(defun indent-buffer () | |
"Correctly indent an entire buffer" | |
(interactive) | |
(backward-page) | |
(set-mark-command 0) | |
(forward-page) |
This file contains 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
(defun delete-trailing-whitespace-except-current-line () | |
(interactive) | |
(let ((begin (line-beginning-position)) | |
(end (line-end-position))) | |
(save-excursion | |
(when (< (point-min) begin) | |
(save-restriction | |
(narrow-to-region (point-min) (1- begin)) | |
(delete-trailing-whitespace))) | |
(when (> (point-max) end) |
This file contains 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
(setq auto-mode-alist | |
(cons '("\\.\\(XML\\|xml\\|xsl\\|rng\\|xhtml\\)\\'" . nxml-mode) | |
auto-mode-alist)) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(backup-directory-alist nil) | |
'(case-fold-search t) |
This file contains 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
;; This buffer is for notes you don't want to save, and for Lisp evaluation. | |
;; If you want to create a file, visit that file with C-x C-f, | |
;; then enter the text in that file's own buffer. | |
This file contains 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
(defun insert-date () | |
"Insert a time-stamp according to locale's date and time format." | |
(interactive) | |
(insert (format-time-string "%a, %e %b %Y, %k:%M" (current-time)))) | |
(global-set-key "\C-cd" 'insert-date) | |
(defun indent-buffer () | |
"Indents an entire buffer using the default intenting scheme." | |
(interactive) |