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
def receive_email | |
from = find_email(params["from"]).downcase | |
tracking_number = Tracking::Extractor.extract(params["text"]) | |
if tracking_number.blank? | |
PostOffice.email_tracking_failure(from, "We could not find a valid tracking number in your email.").deliver | |
else | |
tracking_number.each do |tracking| | |
user = User.first(:conditions => ["email_forwards LIKE ?", "%#{from}%"]) |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
.outter { | |
background:red; | |
padding:5px; | |
position:relative; | |
} | |
.middle { |
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
/** | |
* Break-out elements | |
*/ | |
.wrapper { | |
width:300px; | |
margin:0 auto; | |
background:yellow; | |
} | |
.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
/** | |
* Break-out elements | |
*/ | |
.wrapper { | |
width:300px; | |
margin:0 auto; | |
background:yellow; | |
} | |
.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
/*----------------------------------------------------------------------------- | |
HEADER | |
Some description about the awesomeness of the thing | |
-----------------------------------------------------------------------------*/ |
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
# Server App | |
# This file must be in lib/myapp/api.rb | |
module MyApp | |
module Entities | |
class Products < Grape::Entity | |
expose :id, :code, :name, :short_description | |
expose :description, :unless => { :collection => true } | |
expose (:category) { |model, options| model.category.name } | |
expose (:brand) { |model, options| model.brand.name } | |
end |
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
// The yummy goodness that made this go REAALLLLY fast | |
@import "smilies/*.png"; | |
@include all-smilies-sprites; | |
.smiley { | |
@include inline-block; | |
&.large { | |
height: smilies-sprite-height(red-large); | |
width: smilies-sprite-height(red-large); | |
&.red { @include smilies-sprite(red-large); } |
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
use.typekit.net | |
passets-ec.pinterest.com | |
g.virbcdn.com | |
0.gravatar.com | |
static3.businessinsider.com | |
fbstatic-a.akamaihd.net |
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
<!-- data-variables="[email protected]&user_id=13&last_seen=January 14, 2013" --> | |
<script | |
data-id="femybxrj" | |
data-format="inline" | |
data-size="medium" | |
data-variables="[email protected]&user_id=13&last_seen=January 14, 2013" | |
src="//localhost:3000/d.js" | |
class="temper" | |
async> |
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
// SASS | |
nav { | |
a { | |
color: green; | |
li.selected & { | |
color: red; | |
} | |
} | |
} |