Skip to content

Instantly share code, notes, and snippets.

View crockpotveggies's full-sized avatar
🥕
carrot

Justin Long crockpotveggies

🥕
carrot
View GitHub Profile
@crockpotveggies
crockpotveggies / SquAction.scala
Created March 28, 2012 06:29
Play! 2.0 is a meanie head so we slap that bitch with SquAction, a trait binding session to action thread
package controllers
import play.api.mvc._
import org.squeryl._
import org.squeryl.PrimitiveTypeMode._
/**
* bind a session to each action with this nifty Squeryl trait
*/
@crockpotveggies
crockpotveggies / Mailloy.scala
Created March 26, 2012 23:51
A mailer trait for sending HTML emails for Play! Framework 2.0
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.