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 show-paren-style 'expression) | |
(show-paren-mode 2) | |
(menu-bar-mode -1) | |
(tool-bar-mode -1) | |
(setq make-backup-files nil) ; Don't want any backup files | |
(setq auto-save-list-file-name nil) ; Don't want any .saves files | |
(setq auto-save-default nil) ; Don't want any auto saving |
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
// mutable i | |
// | |
int i = 0; | |
while (something() > 0) { | |
i++; | |
} | |
// immutable i | |
// |
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 reverse-input-method (input-method) | |
"Build the reverse mapping of single letters from INPUT-METHOD." | |
(interactive | |
(list (read-input-method-name "Use input method (default current): "))) | |
(if (and input-method (symbolp input-method)) | |
(setq input-method (symbol-name input-method))) | |
(let ((current current-input-method) | |
(modifiers '(nil (control) (meta) (control meta)))) | |
(when input-method | |
(activate-input-method input-method)) |
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
* Emacs as IDE | |
** Sr Speedbar | |
http://www.emacswiki.org/emacs/SrSpeedbar | |
** Yasnippet | |
http://www.emacswiki.org/emacs/Yasnippet | |
** Projectile | |
https://github.com/bbatsov/projectile |
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
public Person mainFlow(String arg1, String arg2, int arg3) throws WrongArgs, WrongPerson, WrongResult { | |
verifyArgs(arg1, arg2, arg3); | |
Person p = personRepo.readFromDb( arg3 ); | |
verifyPerson(p); | |
Result result = doSomething(arg1, arg2, p); | |
checkResult( result ); | |
return p; |
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
(defmacro macro1 (name) | |
name) | |
(defmacro macro2 (name) | |
'(name)) | |
(defmacro macro3 (name) | |
`(,name)) | |
;; #123456789012345678901234567890123456789012345678901234567890 |
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
(global-ede-mode t) | |
(ede-enable-generic-projects) | |
(require 'ede/generic) | |
(defclass ede-haskell-project (ede-generic-project) | |
((buildfile :initform ".cabal")) | |
"Haskell project.") | |
(defmethod initialize-instance ((this ede-haskell-project) &rest fields) | |
(call-next-method) |
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
let result <- runMaybeT $ do Engine.boost.quick_fetch [Foam Beer_opener Lighter_gun] | |
send_to Defender.closest.dear | |
append $ hugs <> kisses | |
say "Hurrah!" |
NewerOlder