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
map.root :controller => 'ryd', :action => 'index', | |
:conditions => { :method => :get } | |
map.resource 'ryd/:id', :controller => 'ryd', :action => 'index', | |
:conditions => { :method => :get } |
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 BCCode | |
def self.build(&block) | |
builder = Bc.new | |
builder.instance_eval(&block) | |
builder.codes | |
end | |
class Bc | |
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
Things from Textmate I would love in Emacs | |
1 Opening up a project folder and everything in it with: emacs . | |
2 File browser to the left, and showing folders/files.ext and easily switch between the files | |
3 Able to search for piece of code inside project files, eg: search for "def convert(string)" and press enter opens up that f file. Ability to mark a region of text and add "" or #{} and marks the text | |
4 A tab bar for files | |
5 Ruby, Rails, Active Record snippets | |
6 Autocomplete, intellisense | |
7 Able to run ruby code or specific functions | |
8 Class Browser (like file browser) (browse by functions/classes) | |
9 Github/Pastie bundle (To send to code gist or pastie) |
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"> | |
jQuery(document).ready(function() { | |
$("#dialog").dialog({ height: 500, width: 500, position: [30, 30], minHeight: 300, minWidth: 300 }); | |
}); | |
jQuery(document).ready(function() { | |
$("#wxw:button").click(function() { | |
$("#dialog").dialog({show: "transfer"}); | |
alert("JELLOWORLD"); | |
}); | |
}); |
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
$(function() { | |
$("a.rjs").click( function() { | |
$.ajax({ | |
url: this.href, | |
dataType: "script", | |
beforeSend: function(xhr) {xhr.setRequestHeader("Accept", "text/javascript");} | |
}); | |
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
// Place your application-specific JavaScript functions and classes here | |
// This file is automatically included by javascript_include_tag :defaults | |
JQuery.ajaxSetup({ | |
'beforeSend' function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} | |
}) | |
$(document).ready(function() { | |
$(function() { |
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
JQuery.ajaxSetup({ | |
'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} | |
}) | |
$(function() { | |
$(".rjs").click( function() { | |
alert("TEST"); | |
$.ajax({url: this.href, dataType: "script"}); | |
}); | |
}) |
OlderNewer