Skip to content

Instantly share code, notes, and snippets.

View Coutlaw's full-sized avatar

Cass Outlaw Coutlaw

View GitHub Profile
https://monix.io/ | Monix
https://www.youtube.com/watch?v=Zt6LjUnOcFQ | (12) The Type Astronaut's Guide to Shapeless—Dave Gurnell - YouTube
https://jto.github.io/articles/getting-started-with-shapeless/ | Getting started with Shapeless
https://github.com/clvv/fasd | clvv/fasd: Command-line productivity booster, offers quick access to files and directories, inspired by autojump, z and v.
https://www.scala-lang.org/blog/2017/11/30/bloop-release.html | Meet bloop, a fast tool to compile and test your project | The Scala Programming Language
https://docs.google.com/spreadsheets/d/1PkYmXkEl_r1QeP66URj_I8psp-OTuVlb2utFi0LMqd4/edit#gid=0 | ZapierDemo - Google Sheets
@Coutlaw
Coutlaw / preGitPush.txt
Created July 2, 2018 15:14
pre git push
# for node
npm run-script lint
# if errors
npm run-script lintfix
# to test
npm test
# for scala
sbt clean scalafmt test:scalafmt scalastyle test
@Coutlaw
Coutlaw / filterinputJS.js
Created June 29, 2018 14:57
filter inputs in javascript
const mkLender = (assignedLender, category) => {
if (assignedLender) {
const input = assignedLender.toLowerCase().replace(/ /g, '');
if (input.startsWith("userid:")) {
const x = /userid:(\d+)/i.exec(input);
if (x != null)
return {
assignedUser: {"userId": parseInt(x[1])},
category: mkCategory(category)
};
@Coutlaw
Coutlaw / scalafmtTest
Created June 28, 2018 18:00
run scala fmt tests and check style
sbt clean scalafmt test:scalafmt scalastyle test