Skip to content

Instantly share code, notes, and snippets.

View seivan's full-sized avatar

Seivan seivan

  • 23:48 (UTC +01:00)
View GitHub Profile
map.root :controller => 'ryd', :action => 'index',
:conditions => { :method => :get }
map.resource 'ryd/:id', :controller => 'ryd', :action => 'index',
:conditions => { :method => :get }
We couldn’t find that file to show.
module BCCode
def self.build(&block)
builder = Bc.new
builder.instance_eval(&block)
builder.codes
end
class Bc
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)
We couldn’t find that file to show.
We couldn’t find that file to show.
<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");
});
});
$(function() {
$("a.rjs").click( function() {
$.ajax({
url: this.href,
dataType: "script",
beforeSend: function(xhr) {xhr.setRequestHeader("Accept", "text/javascript");}
});
// 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() {
JQuery.ajaxSetup({
'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")}
})
$(function() {
$(".rjs").click( function() {
alert("TEST");
$.ajax({url: this.href, dataType: "script"});
});
})