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
! Internal server error, for request [GET /tasks/1/delete?] -> | |
sbt.PlayExceptions$CompilationException: Compilation error [could not find implicit value for parameter om: org.scalaquery.ql.OptionMapper2[Int,Int,Boolean,Int,Long,R]] | |
at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12$$anonfun$apply$13.apply(PlayReloader.scala:236) ~[na:na] | |
at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12$$anonfun$apply$13.apply(PlayReloader.scala:236) ~[na:na] | |
at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3] | |
at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12.apply(PlayReloader.scala:236) ~[na:na] | |
at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12.apply(PlayReloader.scala:233) ~[na:na] | |
at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3] |
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
val map = { | |
type Dict = Map[Char, Char] | |
val initial = Map[Char, Char]() | |
(for(c <- List('A', 'a'); i <- 0 until 26) yield { | |
((i + c).toChar, ((i + 13) % 26 + c).toChar) | |
}).foldLeft[Dict](initial)({ (map, kv) => | |
val (k, v) = kv | |
map.updated(k, v) |
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
shorewall: | |
pkg: | |
- installed | |
cmd.wait: | |
- name: service shorewall reload | |
- require: | |
- pkg: shorewall | |
- pkg: ulogd | |
- file: shorewall_files | |
- file: /etc/default/shorewall |
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
def countdown(a): | |
for i in a: | |
print a - i | |
if i == 3: | |
print "blast off!" | |
break | |
i+=1 | |
countdown(3): |
NewerOlder