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
use core::hashmap::HashMap; | |
fn main() { | |
let mut map : HashMap<~str, int> = HashMap::new(); | |
let keys = ~[~"foo", ~"bar", ~"foo"]; | |
do keys.consume |_, key| { | |
let count; | |
{ | |
let count_option = map.find(&key); | |
match count_option { |
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 codegen | |
import scala.reflect.runtime.currentMirror | |
import scala.slick.driver.JdbcProfile | |
import scala.slick.jdbc.meta.{MTable, createModel} | |
import scala.slick.model.codegen.SourceCodeGenerator | |
import scala.slick.model.{Model, Table} | |
import java.io.File | |
import java.io.FileWriter |
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
;; Keybonds | |
(global-set-key [(hyper a)] 'mark-whole-buffer) | |
(global-set-key [(hyper v)] 'yank) | |
(global-set-key [(hyper c)] 'kill-ring-save) | |
(global-set-key [(hyper x)] 'kill-region) | |
(global-set-key [(hyper s)] 'save-buffer) | |
(global-set-key [(hyper l)] 'goto-line) | |
(global-set-key [(hyper w)] | |
(lambda () (interactive) (delete-window))) | |
(global-set-key [(hyper z)] 'undo) |