Skip to content

Instantly share code, notes, and snippets.

View edwelker's full-sized avatar

Eddie Welker edwelker

View GitHub Profile
Scala Database: http://manuel.bernhardt.io/2014/02/04/a-quick-tour-of-relational-database-access-with-scala/
https://github.com/salat/salat <-- serialization of case classes... good for mongo.
https://github.com/sksamuel/elastic4s <-- async module for ElasticSearch
http://www.joda.org/joda-time/ <-- default time library (JSL recommended)
Slick - F-ORM http://slick.typesafe.com/
Shapeless - https://github.com/milessabin/shapeless
Dair - https://github.com/jeremyrsmith/dair
@edwelker
edwelker / pressure_cooker_pulled_pork.txt
Last active June 26, 2016 17:12
pressure_cooker_pulled_pork
Head of garlic, smashed (don't bother to mince)
3 onions, very roughly cut (they will dissolve)
1-2 cups of beef/chicken broth, water, light-tasting beer (no hops, no porters), or a mix.
1 tbsp each:
whole cumin
whole fennel
whole coriander
chili powder
sbt "run -admin.port=:10008 -jvm-debug=:5005"
[info] Loading global plugins from /home/welkere/.sbt/0.13/plugins
[info] Loading project definition from /home/welkere/code/scala/projectwizard/project
[info] Updating projectwizard-build
[info] Resolved projectwizard-build dependencies
[info] Fetching artifacts of projectwizard-build
[info] Fetched artifacts of projectwizard-build
[info] Set current project to projectwizard (in build file:/home/welkere/code/scala/projectwizard/)
[info] Updating projectwizard
[info] Resolved projectwizard dependencies
@edwelker
edwelker / De-Option
Created February 10, 2017 20:38
Eddie is awesome, with his stink.
val credentials = for {
// Create credentials
username <- Utils.username
password <- Utils.password
} yield BasicAuth.client(username, password)
//TODO: connection pooling https://twitter.github.io/finagle/guide/Clients.html#pooling
val client = for {
host_port <- Utils.host_port
} yield Http.client.withTlsWithoutValidation.newService(host_port)
@edwelker
edwelker / csd.md
Last active April 3, 2017 20:58
csd

Web developers shouldn't be in CSD

  1. It makes no strategic sense. It will require duplicative administrative, project staffing (matrix), and work of other general concerns.

  2. It will establish odd, and unnecessary communications channels between these devs and the backend devs, PLUS these devs and other frontend devs.

  3. We've tried this before (the webdev pool), and it didn't work. It resulted in developer-project lock-in, and further distanced these devs from the backend devs.

  4. Isolating (some) frontend devs will hurt developer flexibility.

Plov Recipe
Base recipe: https://cooking.nytimes.com/recipes/1016811-bukharan-plov-with-beef-carrots-and-cumin-seeds
Keys: Calrose or Kokuhu Sushi rice... either way, medium grain rice.
http://spicetrekkers.com/products-page/indian-sri-lankan/wild-black-cumin-uzbekistan-2/
Notes from first attempt:
1) I browned the meat first, and for a long period of time. In reality, it just needs more time