Skip to content

Instantly share code, notes, and snippets.

View DougC's full-sized avatar

Doug Clinton DougC

  • Well-Factored Software Ltd.
  • Grenoble, France
  • 18:54 (UTC +02:00)
  • X @dclinton
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
"ApplicationID","UCASCourse","RouteCode","StudentID","UCASID","UCASChoice","Surname","Forename1","Forename2","Forename3","ContactTelephone","ApplicationCategory","ApplicationStatus","CourseBlock","Decision1","Response1","Decision2","Response2","Decision3","Response3","ChangeCourse","DateOfBirth","HomeEmail","ApplicationCreated","ExtraRoundNo","Clearing"
"2cveFr6vbG0ZZBlbOcbStW1x9iTR7L5KYZasOKPugEQb4uaOLPWTx6oSDfZ2NISH","NN12","USBUS","079470926","0997896349","7","Giraffe","Florrie","","","555-3789","HCP","A-WH","11","","","","","U","F","N","2003-01-01","","2022-07-18","","C"
"YlYO2x4PvCUmTOH8WTJrX9pDWXAM50T0k0m1cnOtbSChWGihshlSIYVZnT5iLLkG","J5B2","USBBS","699710709","9864104789","3","Polar Bear","Marsha","","","555-0235","HEP","A-W","11","U","D","","","","","N","2002-01-21","hkka@example.com","","","N"
"uyVmTFU3YPwOPPbNKDZwh18nMNGkVV3pnjlQ7u7BkDnW9vys7NtPbPh23upd7gAw","R900","UJGRYPGW","178582216","3710504668","7","Badger","Janean","","","","QQP","A-ZM","11","","","","","U","F","N","2004-01-01","xulm@example
@DougC
DougC / sits_5000.csv
Last active April 25, 2022 10:03
5000 selector list rows with right values to match the filter in the bridge
We can't make this file beautiful and searchable because it's too large.
"ApplicationID","UCASCourse","RouteCode","StudentID","UCASID","UCASChoice","Surname","Forename1","Forename2","Forename3","ContactTelephone","ApplicationCategory","ApplicationStatus","Adjustment","CourseBlock","Decision1","Response1","Decision2","Response2","Decision3","Response3","ChangeCourse","DateOfBirth","HomeEmail","ApplicationCreated"
"vLs1wbpmbMYAG49BRalEhUHCqadU84SgiRUnUaPkLtpBEqqMRn9MXrU2qD4Qh31r","C431","USMGE","656838235","3744961231","4","Zebra","Deeann","","","","HCC","A-A","","11","U","F","U","F","","","N","2002-01-28","","2022-04-24"
"tAKXK1SzhsirAwb2GKe0TFOW50HLXBX","R900","UJGRWPGY","499514597","6080530772","0","Possum","Inez","","","555-4395","OEP","A-A","","11","U","F","","","U","D","N","2002-01-01","btle@example.com","2022-02-21"
"d13Vx93cSqGK5OB6cgqORJq2YBDxb83QDHCw7XCugW7Xi2AtfgUVJgZF6Q1UB300","C40Y","USGNY","441014956","2604987496","1","Echidna","Kenisha","","","555-0661","HCC","A-A","","11","U","F","","","","","N","2002-09-27","ykeg@example.com","2022-03-03"
"Zav6T3SUekaejlfoPFtR33NOph
package mailroom.tracing
import cats.Id
import cats.effect.{IO, IOLocal, Resource}
import natchez._
import java.net.URI
/**
* Similar to Trace[F] but allows for the creation of a new root span, either completely fresh or continued
@DougC
DougC / nolazy.scala
Created December 11, 2016 14:50
No need for Lazy now
import shapeless.{::, Generic, HList, HNil}
case class StringWrapper(s: String)
trait F[W, V]
object F {
implicit def genWV[W, V, Repr <: HList](implicit
gen: Generic.Aux[W, Repr],
ev: (V :: HNil) =:= Repr
@DougC
DougC / gist:2f7858f6310d5188274dc9e3d30c105f
Created December 10, 2016 16:12
Demonstration of strange need for Lazy
import shapeless.{::, Generic, HNil, Lazy}
case class StringWrapper(s: String)
trait F[W, V]
object F {
implicit def genWV[W, V](implicit
gen: Lazy[Generic.Aux[W, V :: HNil]]
// Remove the Lazy and the Test object below won't compile

Keybase proof

I hereby claim:

  • I am dougc on github.
  • I am dougc (https://keybase.io/dougc) on keybase.
  • I have a public key whose fingerprint is BA20 DFBE 30C8 1548 7C3E 9D78 B134 4314 3742 AFFF

To claim this, I am signing this object:

@DougC
DougC / CMNReader.scala
Created May 31, 2011 17:09
Read a lisp-like syntax
package cmn
import java.io.StringBufferInputStream
trait Token {
val value : String
}
case object OPEN_PAREN extends Token {
val value = "("