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"> | |
| /* <![CDATA[ */ | |
| JAVASCRIPT CODE HERE | |
| /* ]]> */ | |
| </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
| $(document).ready(function() { | |
| $('img[src$=".png"]').each(function() { | |
| DD_belatedPNG.fixPng(this); | |
| }); | |
| }); |
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
| $(document).ready(function() { | |
| $('#toggler').toggle( | |
| function() { | |
| $('div').animate({ height: '200px' }, 2000, 'swing'); | |
| }, | |
| function() { | |
| $('div').animate({ height: 'auto' }, 2000, 'swing'); | |
| } | |
| ); |
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
| DEPRECATION WARNING: ActionDispatch::ShowExceptions.rescue_responses is deprecated. Please configure your exceptions using a railtie or in your application config instead. (called from <top (required)> at /Users/mike/code/<redacted>/config/environment.rb:5) |
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 LoginController < ApplicationController | |
| def overview | |
| @student = Student.search params[:search] | |
| 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
| class Card | |
| include ActiveModel::Validations | |
| validates :name, :presence => true | |
| 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
| source_paths << File.join(File.dirname(File.expand_path(__FILE__)), "rails-template") | |
| remove_file "README.rdoc" | |
| remove_file "public/index.html" | |
| ## | |
| # Setup rbenv | |
| create_file ".rbenv-version", "1.9.3-p0" | |
| ## |
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 pending_orders? | |
| orders.where(:status => Order::PENDING).exists? | |
| 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
| namespace :flickr do | |
| desc "Pull all data from Flickr" | |
| task :pull => :environment do | |
| # Remove everything to do with the gallery | |
| #Album.destroy_all | |
| #Photo.destroy_all |
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
| var myFunc = function() { | |
| console.log(this); //currently outs DOMelement | |
| }; | |
| if ($('body.home').length) { | |
| $('.slideshow').cycle({ | |
| after: myFunc | |
| }); | |
| } |
OlderNewer