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 / README.markdown
Created April 11, 2012 18:52 — forked from Yavari/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions and eliminates matching to prevent over-filtering of AJAX responses.

Forked from https://gist.github.com/1891669.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
@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.