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
### Keybase proof | |
I hereby claim: | |
* I am jhrv on github. | |
* I am jhrv (https://keybase.io/jhrv) on keybase. | |
* I have a public key ASCNGivSwF9MCQLsBukjfcIasUChB6ML9Z9oJ4fLqcwQUgo | |
To claim this, I am signing this object: |
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
middleware: function (connect) { | |
return [ | |
connect().use(function (req, res, next) { | |
res.setHeader('Access-Control-Allow-Origin', '*'); | |
next(); | |
}), | |
connect.static('.tmp'), | |
connect().use( | |
'/bower_components', | |
connect.static('./bower_components') |
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 io.Source | |
import scala.xml.XML | |
object Buzzwords extends App { | |
val content = Source.fromFile("buzz.txt", "UTF-8") | |
val lines = content.getLines().toList | |
val stopWordsNor = Source.fromFile("stopp-norsk.txt", "UTF-8").getLines().toList | |
val stopWordsEng = Source.fromFile("stop-english.txt", "UTF-8").getLines().flatMap(_.split(",")) |