39 karma · joined Mar 30, 2013 (13y ago) · 32 submissions
5.
Simulating 500M years of evolution with a language model(sciencemagazinedigital.org ↗)
1 points · by GeoffKnauth · 1y ago · 2 comments
comment 1y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
17.
Hackers and HOSPITALS: How you can help(fsf.org ↗)
2 points · by GeoffKnauth · 6y ago · 1 comment
comment 6y ago · link · parent
comment 7y ago · link · parent
comment 8y ago · link · parent
val inputIdTypWidthPat = new Regex("""(?si)@(\w+)\s+(\w+)\((\d+)\)""", "id", "typ", "width")
val inputIdTypeWidthCheck = RxInputMatchGroups(inputIdTypWidthPat,
List(InputMatchGroups("""@COUNTRY_CODE char(2),""",
List(MatchGroups("""@COUNTRY_CODE char(2)""",
List("COUNTRY_CODE", "char", "2"))))))
def getIdTypWidth(s: String): (Option[(String, String, Int)], Int) = {
val om: Option[Match] = inputIdTypWidthPat.findFirstMatchIn(s)
if (om.isDefined) {
if (om.get.groupCount == 3) {
(Some(om.get.group(1), om.get.group(2), om.get.group(3).toInt), om.get.end)
} else (None, 0)
} else (None, 0)
}30.
StrangeLoop registration, tickets “locked”
1 points · by GeoffKnauth · 10y ago · discuss