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
| if [ -d "$HOME/git/bin-wrappers" ]; then | |
| PATH="$PATH:$HOME/git/bin-wrappers" | |
| fi |
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
| source 'http://rubygems.org' | |
| gem 'git-deploy' | |
| gemfile = File.open(File.join(File.dirname(__FILE__), 'deploy', 'Gemfile')) | |
| eval gemfile.read |
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
| clone.find('object').prepend('<param name="wmode" value="opaque" />') unless clone.find('param[name=wmode]').length | |
| clone.find('embed').attr wmode: 'opaque' |
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).load(function(){ | |
| $('#slider').ramblingSlider({ | |
| imageTransitions: { | |
| /* Add a 'fadeInSlices' transition */ | |
| fadeInSlices: function() { | |
| /* ... */ | |
| }, | |
| /* Override the 'sliceUpRight' transition */ | |
| sliceUpRight: function() { | |
| /* ... */ |
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
| 0 */12 * * * /bin/bash -l -c 'source "$HOME/.rvm/scripts/rvm" && rvm use 1.9.2 && rvm gemset use records_app && cd /path/to/the/records_app/ && rake check_expired_records' |
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
| outerFunctionWithCallback = (options, callback) -> | |
| # Do something with options | |
| callback() | |
| theFunction = -> | |
| self = @ | |
| @doFirstThing = -> # ... | |
| @doSecondThing = -> # ... |
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
| gem 'simple-navigation' |
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
| <div id="single_post"> | |
| <h2 class="post_title"><%= link_to post.title, post %></h2> | |
| <div class="post_content"> | |
| <div class="post_date"> | |
| Posted on <%= post.date.strftime '%e %B %Y' %> | |
| </div> | |
| <div class="posted_by"> | |
| By: <%= post.author %> | |
| </div> | |
| <div class="comments_number"> |
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 ApplicationController < ActionController::Base | |
| # ... | |
| unless Rails.application.config.consider_all_requests_local | |
| rescue_from Exception, with: lambda { |exception| render_error 500, exception } | |
| rescue_from ActionController::RoutingError, ActionController::UnknownController, ::AbstractController::ActionNotFound, ActiveRecord::RecordNotFound, with: lambda { |exception| render_error 404, exception } | |
| end | |
| private | |
| def render_error(status, exception) |
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
| gem 'haml-rails' |