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
| updateTotalManualFeeSubTotals = function() { | |
| var subtotal; | |
| subtotal = 0.0; | |
| $("td.manual-fee-sub-total").map(function() { | |
| var value; | |
| value = parseFloat(this.innerHTML.replace("$", "")); | |
| if (!isNaN(value)) { | |
| return value; | |
| } | |
| }).each(function(i, e) { |
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
| jQuery -> | |
| $("input#select-all-reports").live "click", (e) -> | |
| if $(this).is(':checked') | |
| $("input.selected-reports:not(:checked)").each -> | |
| $(this).attr('checked','checked') | |
| else | |
| $("input.selected-reports:checked").each -> | |
| $(this).removeAttr('checked'); |
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
| = f.input :parent_id, collection: @article.comments, label_method: :ancestry_label_method, value_method: :id, as: :select, include_blank: true |
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
| fadeOut().delay(2000).queue(function() { $(this).remove(); }); |
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
| @import "twitter/bootstrap/bootstrap"; | |
| body { | |
| padding-top: 60px; | |
| } | |
| @import "twitter/bootstrap/responsive"; | |
| // Set the correct sprite paths | |
| @iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png'); | |
| @iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png'); |
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
| countries = [ | |
| ["AF", "Afghanistan"], | |
| ["AL", "Albania"], | |
| ["DZ", "Algeria"], | |
| ["AS", "American Samoa"], | |
| ["AD", "Andorra"], | |
| ["AO", "Angola"], | |
| ["AI", "Anguilla"], | |
| ["AQ", "Antarctica"], | |
| ["AG", "Antigua and Barbuda"], |
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
| Article.published.each do |k| | |
| new_published = rand(5.months.ago..Time.now) | |
| k.update_attribute(:published_at, new_published) | |
| 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
| #!/bin/sh - | |
| mvim -d -f "$2" "$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
| <?php | |
| session_start(); | |
| /*see if we can echo stuff*/ | |
| //if( (!isset( $_SESSION['logged_in'] )) || (!isset( $_SESSION['username' )) ) | |
| $logged_in = $_SESSION['logged_in']; | |
| $username = $_SESSION['username']; | |
| // $timestamp = $_SESSION['timestamp']; | |
| $session_id = $_SESSION['session_id']; | |
| //------------------------- |
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 ActionView::Template | |
| class Markdown | |
| def call(template) | |
| Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(template.source).inspect | |
| end | |
| end | |
| ActionView::Template.register_template_handler :md, Markdown.new | |
| end |