# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Elao\ErrorNotifierBundle\Listener; | |
| use \Swift_Mailer; | |
| use Symfony\Component\HttpKernel\Exception\FlattenException; | |
| use Symfony\Component\Templating\EngineInterface; | |
| use Symfony\Component\HttpKernel\HttpKernelInterface; | |
| use Symfony\Component\HttpKernel\Exception\HttpException; | |
| use Symfony\Component\HttpKernel\Log\DebugLoggerInterface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Media Queries in Sass 3.2 | |
| // | |
| // These mixins make media queries a breeze with Sass. | |
| // The media queries from mobile up until desktop all | |
| // trigger at different points along the way | |
| // | |
| // And important point to remember is that and width | |
| // over the portrait width is considered to be part of the | |
| // landscape width. This allows us to capture widths of devices | |
| // that might not fit the dimensions exactly. This means the break |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class User < ActiveRecord::Base | |
| attr_accessible :name | |
| has_many :admin_memberships, class_name: "Membership", conditions: {role: 'admin'} | |
| has_many :editor_memberships, class_name: "Membership", conditions: {role: 'editor'} | |
| def admin? | |
| admin_memberships.exists? | |
| end |
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string # This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string # This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Grid Overlay for Twitter Bootstrap | |
| * Assumes a 1.692em baseline grid (22px/13px) | |
| */ | |
| @media (min-width: 1200px) { | |
| body { | |
| background: -webkit-linear-gradient( | |
| 90deg, | |
| rgba(0,0,0,0.05), | |
| rgba(0,0,0,0.05) 4.545%, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form method="post"> | |
| <div> | |
| <label>First <input type="radio" name="choice" value="1" /></label> | |
| <input type="text" name="first_text" /> | |
| </div> | |
| <div> | |
| <label>Second <input type="radio" name="choice" value="2" /></label> | |
| <input type="text" name="second_text" /> | |
| </div> | |
| </form> |
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string