Skip to content

Instantly share code, notes, and snippets.

Seivan Heidari seivan

Block or report user

Report or block seivan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View snippet.rb
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.
View gist:68715
module BCCode
def self.build(&block)
builder = Bc.new
builder.instance_eval(&block)
builder.codes
end
class Bc
View file.txt
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.
View snippet.html
<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");
});
});
View snippet.js
$(function() {
$("a.rjs").click( function() {
$.ajax({
url: this.href,
dataType: "script",
beforeSend: function(xhr) {xhr.setRequestHeader("Accept", "text/javascript");}
});
View snippet.js
// 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() {
View snippet.js
JQuery.ajaxSetup({
'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")}
})
$(function() {
$(".rjs").click( function() {
alert("TEST");
$.ajax({url: this.href, dataType: "script"});
});
})
You can’t perform that action at this time.