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
/** | |
* NegNumbers | |
* | |
* A singleton that takes the code out for a spin. | |
*/ | |
object NegNumbers { | |
// Instance: | |
val some = new SomeNumbers { | |
// Defining an abstract member is what instances do best! |
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
package proj | |
object Main extends App |
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
def runSecondThenFirst(first: => Unit)(second: => Unit) = { | |
second; | |
first | |
} | |
runSecondThenFirst { | |
println("First") | |
} { | |
println("Second") | |
} |
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
;; Billy Mays here talking about zap to whitespace. | |
;; Deletes your whitespace forward. | |
;; Got to fix indentation before you merge? No problem! | |
(global-set-key "\C-c " 'zap-whitespace-forward) ;; C-c SPC | |
;; But I'm still not done. | |
(defalias 'zap-whitespace-forward 'ash-delete-syntax-forward) | |
;; There's more! | |
;; Delete word characters forward, delete punctuation forward, |
NewerOlder