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
| guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do | |
| watch('config/application.rb') | |
| watch('config/environment.rb') | |
| watch(%r{^config/environments/.+\.rb$}) | |
| watch(%r{^config/initializers/.+\.rb$}) | |
| watch('Gemfile') | |
| watch('Gemfile.lock') | |
| watch('spec/spec_helper.rb') { :rspec } | |
| watch('test/test_helper.rb') { :test_unit } | |
| watch(%r{features/support/}) { :cucumber } |
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
| git update-ref refs/heroku_san/deploy HEAD | |
| git push git@heroku.com:tedcity2-staging.git --force refs/heroku_san/deploy:refs/heads/master | |
| Counting objects: 84, done. | |
| Delta compression using up to 4 threads. | |
| Compressing objects: 100% (60/60), done. | |
| Writing objects: 100% (60/60), 7.02 KiB, done. | |
| Total 60 (delta 44), reused 0 (delta 0) | |
| -----> Heroku receiving push | |
| -----> Ruby/Rails app detected |
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
| $.fn.vAlign = -> | |
| @each (i) -> | |
| ah = $(this).height() | |
| ph = $(this).parent().height() | |
| mh = (ph - ah) / 2 | |
| $(this).css "margin-top", mh |
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
| ((window, $, App, undefined_) -> | |
| App.homePage = | |
| initialize: -> | |
| # exit if we're not on the correct page | |
| return if !$(document.body).hasClass('pages-home-view') | |
| @bindElements() | |
| bindElements: -> |
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
| $("#stories_list li").mouseenter -> | |
| expandingClone = $(this).clone() | |
| thisStory = $(this); | |
| thisStory.addClass('original_story') | |
| thisStoryWidth = thisStory.width(); | |
| thisStoryHeight = thisStory.height(); | |
| thisStoryWidthDouble = thisStory.outerWidth() * 2; |
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
| #stories_list { | |
| position: relative; | |
| min-width: 960px; | |
| li { | |
| position: relative; | |
| .item.cf { | |
| padding: 0 5px; | |
| .image { | |
| margin-top: 5px; | |
| } |
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
| tire.search(tire_params, load: true) do | |
| query do | |
| # Assumes +term+ is the text you're searching for | |
| string term, default_field: 'title', default_operator: 'AND' | |
| match :title, term, type: 'phrase_prefix', max_expansions: 10 | |
| end | |
| 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
| <script type="text/javascript" id="">$(function(){$(".btn.btn-large.btn-action.btn-red").click(facebookTrackingSendClick)});function facebookTrackingSendClick(c){c.preventDefault();(function(){var a=document.createElement("script");a.async=!0;a.src="//connect.facebook.net/en_US/fp.js";a.onload=function(){};var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})()};</script> | |
| <script type="text/javascript" id="">$(function(){$(".btn.btn-large.btn-action.btn-red").click(googleTrackingSendClick)});function googleTrackingSendClick(c){c.preventDefault();(function(){var a=document.createElement("script");a.async=!0;a.src="//www.googleadservices.com/pagead/conversion.js";a.onload=function(){};var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})()};</script> |
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
| # app/controllers/admin/clubs/applications/invitations_controller.rb | |
| module Admin | |
| module Clubs | |
| module Applications | |
| # InvitationsController allows an application invitation to be sent, and | |
| # to trigger subsequent actions, such as setting state on the application | |
| # or sending an invitation email. | |
| class InvitationsController < Admin::ApplicationController | |
| respond_to :js | |
| before_filter :set_application |
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
| # app/models/clubs/notification/invitation.rb | |
| module Clubs | |
| class Notification | |
| class Invitation < Clubs::Notification | |
| # snip | |
| end | |
| end | |
| end | |
| # Alternate |
OlderNewer