I hereby claim:
- I am stigberg on github.
- I am stigberg (https://keybase.io/stigberg) on keybase.
- I have a public key ASBrRI4GNCCy3XfBxCT9FJS4SJNaikJYqpR8IklS7Z0bigo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package no.mulletman; | |
import org.junit.Test; | |
import org.springframework.jdbc.core.JdbcTemplate; | |
import org.springframework.jdbc.core.RowMapper; | |
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabase; | |
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; |
object blacklist extends App { | |
val blacklist = List(2,4,6,8,10) | |
for( id <- 1 to 10) { // for release in doc.getElementsByTagName("press_release"): | |
var blacklistedid = 0; // blacklistedid = "" | |
var bid = 0; | |
for (bid <- blacklist) { // for line in f: | |
blacklistedid = bid // blacklistedid = line.replace("\n","") | |
if (blacklistedid != id) { // if blacklistedid != release.getAttribute("id"): | |
blacklistedid = 0 // blacklistedid = "" |