This file contains 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
$ ruby -v | |
ruby 1.9.2p136 (2010-12-25) | |
$ ruby symbol_literals.rb | |
valid as first char: | |
@$_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
valid as middle char: | |
_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 | |
valid as end char: | |
!_=?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 |
This file contains 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" | |
} |
This file contains 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 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 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 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 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 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 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 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> |