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
| #!/usr/bin/env ruby | |
| def latest_maint_releases(vers) | |
| vers.inject([]) do |a, version| | |
| unless a.any? {|v| v[/\d+\.\d+/] == version[/\d+\.\d+/] && v > version } | |
| a << version | |
| end | |
| a | |
| 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" charset="utf-8" src="javascripts/jquery-1.3.min.js"></script> | |
| <script type="text/javascript" charset="utf-8" src="javascripts/jquery.scrollTo.js"></script> | |
| <script type="text/javascript" charset="utf-8" src="javascripts/jquery.localscroll.js"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| // <![CDATA[ | |
| $(document).ready(function() { | |
| $.localScroll(); | |
| }); | |
| // ]]> | |
| </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
| namespace :deploy do | |
| [:cold, :start, :stop].each {|t| task(t) { raise_not_implemented } } | |
| namespace :web do | |
| [:enable, :disable].each {|t| task(t) { raise_not_implemented } } | |
| end | |
| def raise_not_implemented | |
| raise "This task isn't implemented" | |
| 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
| <% content_for(:head) do -%> | |
| <script type="text/javascript"> | |
| //<![CDATA[ | |
| $(function() { | |
| $("#form_link").click(function() { | |
| $("#form_submission_business_name").focus(); | |
| }); | |
| }); | |
| //]]> | |
| </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
| module ApplicationHelper | |
| def default_javascript | |
| js = "" | |
| begin | |
| js << render(:partial => "default.js") | |
| rescue ActionView::MissingTemplate | |
| end | |
| begin | |
| js << render(:partial => "#{params[:action]}.js") | |
| rescue ActionView::MissingTemplate |
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.observe("dom:loaded", function() { | |
| $('username').activate(); | |
| }); |
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
| package net.sourceforge.vrapper.vim.commands; | |
| import net.sourceforge.vrapper.platform.TextContent; | |
| import net.sourceforge.vrapper.utils.ContentType; | |
| import net.sourceforge.vrapper.utils.LineInformation; | |
| import net.sourceforge.vrapper.utils.Position; | |
| import net.sourceforge.vrapper.utils.TextRange; | |
| import net.sourceforge.vrapper.utils.VimUtils; | |
| import net.sourceforge.vrapper.vim.EditorAdaptor; | |
| import net.sourceforge.vrapper.vim.register.RegisterContent; |
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 Mom | |
| class << self | |
| def defined_it? | |
| method_defined? :the_method | |
| end | |
| end | |
| end | |
| class Son < Mom | |
| class << self |
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 vimStates = [ | |
| // states ... | |
| onStateChange: function(state) { | |
| //change cursor to block/regular mode | |
| } | |
| ] |
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
| { | |
| key: "s", | |
| exec: "del", | |
| then: "insertMode" | |
| } |
OlderNewer