Skip to content

Instantly share code, notes, and snippets.

View jhrv's full-sized avatar

Johnny Horvi jhrv

  • Oslo
View GitHub Profile
### 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:
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')
@jhrv
jhrv / Buzzwords.scala
Created April 10, 2014 04:28
Scala-workshop
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(","))